Hi,
Does anyone know how to get a MultiplePiePlot to work with a subclass of a PiePlot? I tried changing MultiplePiePlotDemo1 to get a RingPlot instead of a PiePlot and it threw a class cast exception
There isn't any useful info in the developer guide.
Thanks,
Tim
MultiplePiePlot question
-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
You can change the "template" used for each subchart by calling the setPieChart() method in the MultiplePiePlot class. You provide a JFreeChart instance that uses a PiePlot (or any subclass, e.g. PiePlot3D or RingPlot) for the plot. The MultiplePiePlot will update the chart title and dataset just prior to drawing each subchart.
I will create a demo and write it up in the developer guide for the next release.
I will create a demo and write it up in the developer guide for the next release.
David Gilbert
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader

