Hi Ely,
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,
USA
57.3529411 (57.4%)
total: 68

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

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

Is it a bug in flex? any workaround for this??
thanks
-Siva





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

[Bindable]
        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:Script>
<mx:Panel title="Mixed Sets Chart Created in MXML" id="panel1">
        <mx:BarChart id="myChart" width="100%" height="100%" 
dataProvider="{model1}" showDataTips="true">
        <mx:verticalAxis>
                <mx:CategoryAxis categoryField="Country"/>
        </mx:verticalAxis>
        <mx:series>
                <mx:BarSet type="clustered">
                        <mx:BarSeries xField="Gold"/>
                        <mx:BarSet type="100%">
                                <mx:BarSeries xField="Silver"/>
                                <mx:BarSeries xField="Bronze"/>
                        </mx:BarSet>
                </mx:BarSet>
        </mx:series>
        </mx:BarChart>
</mx:Panel>
</mx:Application>



Reply via email to