Re: emebdding pie charts

"Nathaniel G. Auvil" <[email protected]>
Newsgroups gmane.comp.krysalis.jcharts.user
Message-ID <[email protected]>
So why not create multiple pie charts?


--- xyz <[email protected]> wrote:
> hi,
> I will try to explain.suppose I have 5 slices in the pie chart. 
> int i=4;
> int j=5;
> int k=6;
> int h=9;
> int l=10;
> String[] labels= { "AA","BB","CC","DD","EE"};	        
> with this the usual pie chart is drawn but I want to display the totals of the slices of pie
> chart in an outer Pie(a circle ouside the actual pie I have to draw)
> here total=i+j+k 
> total2=h+l;
> so on the outer pie I want to show the subset(totals) of i+j+k
> and h+l.So here how can I draw the outer Pie to display the totals.
> Thanks
> 
> 
> I am not sure i understand what you want to do.  It sounds like you want to drill into the
> chart? 
>  You use an image map for this.
>  
>  
>  --- Eyunni Srilatha <srile@re...> wrote:
>  > hi,
>  > I want to embed one PIE chart into another.
>  > The first chart has 
>  > int i=4;
>  > int j=5;
>  > int k=6;
>  > int h=9;
>  > 
>  > double[] data= {h,i,j,k};
>  > String[] labels= { "AA","BB","CC","DD"};	        
>  > Paint[] paints= { new Color(255,204,0),new Color(51,153,255),new Color(51,153,255),new
>  > Color(51,153,255)};
>  > 
>  > The second chart has:
>  > int m=i+j+k;
>  > double[] data= {h,m};
>  > String[] labels= { "Total of AA","Total of BB CC DD"};	        
>  > Paint[] paints= { new Color(255,204,0),new Color(51,153,255)};
>  > 
>  > the second chart should show me the subset of the first charts data.
>  > the inner Pie chart should show the normal data and the outer PIE chart should show the
> totals
>  > of the inner chart.
>  > can anyone help me in doing  this
>  > Thaks
>  > 
>  > 
>  > 
> 
> 
> 


__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
http://webhosting.yahoo.com/ps/sb/


-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.