3

I am generating line chart using jfree chart, but I am able to generate a line chart which is not looking so good. I want to generate an image like the following

image

Can anybody please suggest any solution?

trashgod
  • 203,806
  • 29
  • 246
  • 1,045
Vidya Sagar
  • 125
  • 1
  • 3
  • 9

2 Answers2

5

If you already have a line chart, you will have to change the renderer you use to XYSplineRenderer. See the javadocs for this here.

Dan D.
  • 32,246
  • 5
  • 63
  • 79
1

ArcTest shows how to use an XYShapeAnnotation that can be any Shape at all.

Community
  • 1
  • 1
trashgod
  • 203,806
  • 29
  • 246
  • 1,045