mrmarkus Posted September 29, 2017 Share Posted September 29, 2017 Hi! Is it possible to use a custom chart type in our reports? We have the need for an XY-chart that displays a rectangle for every data point. That means every data point consists of four values. For this an XYIntervalSeries could be used, it offers an X-interval and a Y-interval. We constructed a JFreeChart using an XYIntervalSeriesCollection in Java and we're looking for a way to use it from Jaspersoft Studio. Any help on how this is possible is appreciated! Thanks, Markus Link to comment Share on other sites More sharing options...
szaharia Posted October 2, 2017 Share Posted October 2, 2017 Since this is a custom JFreeChart object, you need to write either a chart customizer class or a chart theme implementation in order to properly handle this chart. The chart customizer (or the chart theme) should be placed into app classpath in order to make them available at runtime.See http://jasperreports.sourceforge.net/sample.reference/charts/index.html#chartcustomizersAlso see http://jasperreports.sourceforge.net/sample.reference/chartthemes/index.html Link to comment Share on other sites More sharing options...
mrmarkus Posted October 2, 2017 Author Share Posted October 2, 2017 Yes, we could use a chart customizer or a chart theme to create our own custom JFreeChart object.But both share the same problem, I have to choose a chart type in Jaspersoft Studio and none of the available chart types offer a dataset that supports 4 values per data point.So I have a JFreeChart object but cannot access the data to display. Link to comment Share on other sites More sharing options...
mrmarkus Posted October 2, 2017 Author Share Posted October 2, 2017 I have discovered an example that uses a scriptlet to create a JFreeChart object that renders into an image:http://jasperreports.sourceforge.net/sample.reference/jfreechart/index.htmlBut the same question arises here - how to access the data? Link to comment Share on other sites More sharing options...
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