From: xyz <sr...@re...> - 2004-02-03 09:45:56
|
hi,=0AI will try to explain.suppose I have 5 slices in the pie chart. =0Ain= t i=3D4;=0Aint j=3D5;=0Aint k=3D6;=0Aint h=3D9;=0Aint l=3D10;=0AString[] la= bels=3D { "AA","BB","CC","DD","EE"}; =0Awith this the usual pie cha= rt 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)=0Ahere total=3D= i+j+k =0Atotal2=3Dh+l;=0Aso on the outer pie I want to show the subset(tota= ls) of i+j+k=0Aand h+l.So here how can I draw the outer Pie to display the = totals.=0AThanks=0A=0A=0AI am not sure i understand what you want to do. I= t sounds like you want to drill into the=0Achart? =0A You use an image map = for this.=0A =0A =0A --- Eyunni Srilatha <srile@re...> wrote:=0A > hi,=0A >= I want to embed one PIE chart into another.=0A > The first chart has =0A >= int i=3D4;=0A > int j=3D5;=0A > int k=3D6;=0A > int h=3D9;=0A > =0A > doub= le[] data=3D {h,i,j,k};=0A > String[] labels=3D { "AA","BB","CC","DD"}; = =0A > Paint[] paints=3D { new Color(255,204,0),new Color(51,153,255),n= ew Color(51,153,255),new=0A > Color(51,153,255)};=0A > =0A > The second cha= rt has:=0A > int m=3Di+j+k;=0A > double[] data=3D {h,m};=0A > String[] labe= ls=3D { "Total of AA","Total of BB CC DD"}; =0A > Paint[] paints=3D= { new Color(255,204,0),new Color(51,153,255)};=0A > =0A > the second chart= should show me the subset of the first charts data.=0A > the inner Pie cha= rt should show the normal data and the outer PIE chart should show the=0Ato= tals=0A > of the inner chart.=0A > can anyone help me in doing this=0A > T= haks=0A > =0A > =0A > =0A=0A=0A |