One chart with in another Chart

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
rauf
Posts: 6
Joined: Fri Dec 03, 2004 1:35 pm

One chart with in another Chart

Post by rauf » Wed Feb 23, 2005 8:12 am

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

david.gilbert
JFreeChart Project Leader
Posts: 11734
Joined: Fri Mar 14, 2003 10:29 am
antibot: No, of course not.
Contact:

Post by david.gilbert » Wed Feb 23, 2005 10:39 am

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:

Image
David Gilbert
JFreeChart Project Leader

:idea: Read my blog
:idea: Support JFree via the Github sponsorship program

rauf
Posts: 6
Joined: Fri Dec 03, 2004 1:35 pm

Sorry that is not the one

Post by rauf » Wed Feb 23, 2005 11:07 am

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

err108

Post by err108 » Tue Jun 07, 2005 3:10 pm

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!

Locked