hello friends, 
is there any possibility to implement bubble chart with text value on x-axis?

I a trying to implement bubble chart using arraycollection.
person name as xField
year as yField
no.product selling as radiusField

but i can't do that. My sample code is here.
any idea?

<?xml version="1.0"?>
<!-- Simple example to demonstrate the BubbleChart control. -->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml";>
    <mx:Script>
        <![CDATA[        
        import mx.collections.ArrayCollection;
        [Bindable] private var chartdata:ArrayCollection = new ArrayCollection( 
[
            { name: "Jack", year: 1995, count: 5 },
            { name: "Jack", year: 1996, count: 10 },
            { name: "Mark", year: 1995, count: 6 },
            { name: "Mark", year: 1996, count: 9 },
            { name: "Luie", year: 1995, count: 4 },
            { name: "Luie", year: 1996, count: 11 },
            { name: "Sam", year: 1995, count: 8 },
            { name: "Sam", year: 1996, count: 12 },
            { name: "John", year: 1995, count: 10 },
            { name: "John", year: 1996, count: 15 }]);
        ]]>
    </mx:Script>
    <mx:Panel title="BubbleChart Panel" height="50%" width="50%">
        <mx:BubbleChart id="bubblechart" height="100%" width="100%" 
showDataTips="true">
            <mx:series>
                <mx:BubbleSeries dataProvider="{chartdata}" xField="name" 
yField="year" radiusField="count"/>
            </mx:series>            
        </mx:BubbleChart>            
    </mx:Panel>
</mx:Application>

Reply via email to