Hi Matt, I looked at the link but it is for 100% chart and when i changed it to stacked chart, it wont work.. i am looking to create a data tip for stacked column/bar chart..
Is there a way, where i can find the "total"/"sum" value for the stacked series? if i can get it through the api, i can divide with the yValue to get the percentage.. Thanks -siva --- In flexcoders@yahoogroups.com, "Matt Horn" <[EMAIL PROTECTED]> wrote: > > Have you seen the example at the bottom of this page? > > http://livedocs.macromedia.com/flex/201/html/charts_formatting_110_34. ht > ml > > It does, I think, what you are trying to do, only with a column chart. > > hth, > matt horn > flex docs > http://blogs.adobe.com/flexdoc > > > -----Original Message----- > > From: flexcoders@yahoogroups.com > > [mailto:[EMAIL PROTECTED] On Behalf Of suri_boston > > Sent: Tuesday, January 16, 2007 1:20 PM > > To: flexcoders@yahoogroups.com > > Subject: [flexcoders] custom data tip in stacked bar chart > > > > Hi, > > I am trying to access the percentage value of the bar to display it > > in the custom data tip function with no success.. > > private function customDataTip(hd:HitData):String { > > > > var tmp:BarSeriesItem = new BarSeriesItem(); > > var stryValue:String = ""; > > tmp = e.chartItem as BarSeriesItem; > > var tmpStr:String = ""; > > var tbar:BarSeries = BarSeries(e.element); > > tmpStr = "<B>" + BarSeries(e.element).displayName + "</B><BR>"; > > if(ca.displayName != null && ca.displayName != "") > > stryValue = "<I>"+ ca.displayName.toString() + ": </I>"; > > stryValue += String(e.item[grpByColumn]); > > tmpStr += stryValue+"<BR>"; > > > > /***** how to get the percentage value??? *****/ > > var tbarstack:StackedSeries = tbar.stacker; > > /***** how to get the percentage value ???*****/ > > > > tmpStr += tmp.xValue + tbar.stacker.toString(); > > return tmpStr; > > } > > > > Any help? > > -Siva > > > > > > > > > > >