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: [email protected] > [mailto:[EMAIL PROTECTED] On Behalf Of suri_boston > Sent: Tuesday, January 16, 2007 1:20 PM > To: [email protected] > 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 > > > > >

