emebdding pie charts
"xyz" <[email protected]>
| Newsgroups | gmane.comp.krysalis.jcharts.user |
|---|---|
| Message-ID | <[email protected]> |
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
>
>
>