0 Replies Latest reply on Jan 16, 2007 10:18 AM by siva.pega

    custom data tip in stacked bar chart

    siva.pega
      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