1

I have the following chart generated by jFreeChart using JasperReports: wrong chart

But i want it to be like this: desired chart

How can i achieve such effect? Sorry if i can't post code, it is generated by jasper reports.

Mateus Viccari
  • 7,389
  • 14
  • 65
  • 101
  • 1
    Comment for jfreechart answers if you solve it in jfreechart (java code), in jasper report its solved by implementing a [JRChartCustomizer](http://jasperreports.sourceforge.net/api/net/sf/jasperreports/engine/JRChartCustomizer.html), so basically you can ignore the jasper-reports tag.... and simple link to the use of this interface – Petter Friberg Feb 16 '16 at 17:30

1 Answers1

1

One approach would be to add data for the endpoints and override getItemShape() as shown here, to display only the desired shape.

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