Another chart engine in PDF reports


I know that JFreeCharts library  is used when generating charts for reports in PDF format.

Is there a way to use any other charting library for PDF format?


andrey_nado's picture
Joined: Feb 27 2007 - 8:33pm
Last seen: 5 years 11 months ago
There is another jcharts examples /demo/samples/jcharts and /demo/samples/jchartscomponent of JasperReports sources.
Ching Ice-creaming - 10 years 7 months ago

1 Answer:


First of all, the library used to render chart is not different depending on the export type, ex PDF. Regardless of what document format you target, we use the same charting package to render the chart.

In JR, you can integrate any charting or visualisation package you want, but in order to do that, it means you are going to call that graphic rendering API directly from your report. With our built-in charts, you just configure a chart element and you normally you are not concerned about the JFreeChart API, unless you want some customizations.

If you want to achieve the same simplicity of use, but rely on a different charting library behind the scenes, you would need to implement a JR custom component for it. Just like at Jaspersoft we did with the FusionCharts package, which is available as a JR component in the comercial version of JR Pro.

But if you download the JR project source tree, you can find several samples that show you how to use different charting packages:




I hope this helps.


teodord's picture
Joined: Jun 30 2006 - 9:00am
Last seen: 4 hours 9 min ago