Hello everyone,
I encountered a feature I'd like to have in MultiplePiePlot, and was wondering if it is something other people wanted to have, and if so, try and get it into the project:
Currently multiple pie plot works according to a "main" plot of a specific pie chart, and according to that plot determines the plot for the rest of the pie charts.
If I were to have two series (Each with its own chart, obviously), one describing amount of chocholate ice-cream consumed from my ice cream stand, and the other the percentile the chocholate ice-cream consumed was from the whole of my sales.
If I wanted to display each with its own formatter, for example, I couldn't do that with MultiplePiePlot currently. There are plenty of other things we could customize in the Plot, but that's something that is obvious we might want to do.
I was wondering if it would be accepted if I would suggest my code to fix this feature (By giving the option to save a "sub-plot" for a given series key, if the user wants, else use the main sub0-plot).
Thanks,
Morwen.
MultiplePiePlot
-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
For the problem you are describing, I think the best approach would be to allow arbitrary plots to be combined in one chart, in some kind of grid layout. I don't think it makes sense to shoe-horn this into the MultiplePiePlot class, although I can see why that might be appealing, initially.
Perhaps create a MultiPlot class that allocates arbitrary subplots to cells in a grid (or maybe you could create a more sophisticated layout scheme).
Perhaps create a MultiPlot class that allocates arbitrary subplots to cells in a grid (or maybe you could create a more sophisticated layout scheme).
David Gilbert
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader


I thought you might say as much, and so to clarify:
The only reason I think this should be done, is to allow me to create dynamic complicated charts:
Say I want to watch the two items of data I presented above. In Line chart, it would be easy, just use two series. Same goes for everything else except Pie chart, where the concept of series is only implemented in MultiplePieChart in away that can convey the same idea without having to divide it into multiple charts (JFreeChart objects). With the other options I had only to work with a single chart object, and in order to maintain this for Pie charts as well, the only reasonable solution I can suggest (And have figured out at the office) is MultiplePiePlot, and so Im suggesting to do this as an optional feature.
The only reason I think this should be done, is to allow me to create dynamic complicated charts:
Say I want to watch the two items of data I presented above. In Line chart, it would be easy, just use two series. Same goes for everything else except Pie chart, where the concept of series is only implemented in MultiplePieChart in away that can convey the same idea without having to divide it into multiple charts (JFreeChart objects). With the other options I had only to work with a single chart object, and in order to maintain this for Pie charts as well, the only reasonable solution I can suggest (And have figured out at the office) is MultiplePiePlot, and so Im suggesting to do this as an optional feature.