0 Replies Latest reply on Mar 21, 2007 12:17 PM by siva.pega

    barset with type=100% tooltip issue

      i created a bar chart with barset type to 100% and the tooltip
      doesn't display the right values. it is displaying the percentage
      value as the bar value instead of showing the actual bar value..
      for the below example:
      tooltip for USA is like,
      57.3529411 (57.4%)
      total: 68

      where i am expectign
      39 (57.4%)
      total: 68

      when i use type=stacked, it displays the right value of the bar

      Is it a bug in flex? any workaround for this??

      <?xml version="1.0"?>
      <mx:Application xmlns:mx=" http://www.adobe.com/2006/mxml">
      import mx.charts.BarChart;
      import mx.charts.series.BarSet;
      import mx.charts.series.BarSeries;
      import mx.collections.ArrayCollection;

      private var model1:ArrayCollection = new ArrayCollection( [
      { Country: "USA", Gold: 35, Silver:39, Bronze: 29 },
      { Country: "China", Gold: 32, Silver:17, Bronze: 14 },
      { Country: "Russia", Gold: 27, Silver:27, Bronze: 38 } ]);
      <mx:Panel title="Mixed Sets Chart Created in MXML" id="panel1">
      <mx:BarChart id="myChart" width="100%" height="100%"
      dataProvider="{model1}" showDataTips="true">
      <mx:CategoryAxis categoryField="Country"/>
      <mx:BarSet type="clustered">
      <mx:BarSeries xField="Gold"/>
      <mx:BarSet type="100%">
      <mx:BarSeries xField="Silver"/>
      <mx:BarSeries xField="Bronze"/>