Hi,
Iam working with Pie Chart. I want to show two separate pie charts into another chart as a single chart with a common title for both the pie chart but with different sub title.
For example :
I have a school name " International Public School ". In class II i have a list of students with names. similarly in class III i have a list of students with names. My task is I want to show Class II pie chart and Class III pie chart separately and put this together into another chart with the main title " International Public School " and diff. sub titles as "Class II" and "Class III" .
If i have another school, then the chart should show Two different school with different main title for each followed by diff. sub titles.
Regards
Rauf
One chart with in another Chart
-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
I think you are describing something similar to what the MultiplePiePlot class does. See MultiplePiePlotDemo1.java in the demos that ship with the JFreeChart Developer Guide:


David Gilbert
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader


Sorry that is not the one
Hi,
Sorry that is not the one. Iam not able to give the space properly so iam giving like this |||||||. So the chart contain 2 piecharts for each school with chart as ClassI & Class II. I want like this
Pie chart Pie Chart ||||||| Pie chart Pie Chart
ClassI Class II ||||||| ClassI Class II
International Public school ||||||| California National School
Pie chart Pie Chart ||||||| Pie chart Pie Chart
ClassI Class II ||||||| ClassI Class II
American English school ||||||| General School
I hope u might have got the clear picture now.
Regards
Rauf
Sorry that is not the one. Iam not able to give the space properly so iam giving like this |||||||. So the chart contain 2 piecharts for each school with chart as ClassI & Class II. I want like this
Pie chart Pie Chart ||||||| Pie chart Pie Chart
ClassI Class II ||||||| ClassI Class II
International Public school ||||||| California National School
Pie chart Pie Chart ||||||| Pie chart Pie Chart
ClassI Class II ||||||| ClassI Class II
American English school ||||||| General School
I hope u might have got the clear picture now.
Regards
Rauf
I'm looking for a similiar solution. I am using a MulitplePiePlot to show two PiePlots. I'd prefer to have just one title for both graphs instead of two titles on each graph. I can add a main title, however I can't seem to get rid of the two subtitles. I can update the background color and font of the titles, but the text seems to be overridden when the graph is drawn. Was this done by design? I've tried the clearSubTitles method on the JFreeChart which contains the MultiplePiePlot, and this seems to clear the legend? I'm using JFreeChart-1.0.0-rc1.
Thanks!
Thanks!