andrey_nado Posted October 12, 2012 Posted October 12, 2012 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
Ching Ice-creaming Posted October 13, 2012 Posted October 13, 2012 There is another jcharts examples /demo/samples/jcharts and /demo/samples/jchartscomponent of JasperReports sources.
Teodor Danciu Posted October 16, 2012 Posted October 16, 2012 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
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now