Jump to content
We've recently updated our Privacy Statement, available here ×

How can I use my own custom chart type?


mrmarkus

Recommended Posts

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

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

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#chartcustomizers

Also see http://jasperreports.sourceforge.net/sample.reference/chartthemes/index.html

Link to comment
Share on other sites

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...