Another chart engine in PDF reports

0

Hi!

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?

Thanks

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

1 Answer:

0

Hi,

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:

/demo/samples/openflashchart

/demo/samples/jcharts

 

I hope this helps.
Teodor

 

teodord's picture
4459
Joined: Jun 30 2006 - 9:00am
Last seen: 15 hours 53 min ago
Feedback
randomness