I have been trying to represent the following data in a Flex Bubblechart.See the chart code below as well.
<fx:Script>
<![CDATA[
import mx.collections.ArrayCollection;
[Bindable]
var BBCData:ArrayCollection= new ArrayCollection([
{Industry: "In1", Range:"0-10 Days", lcount:10},
{Industry: "In1", Range:"10-20 Days", lcount:20},
{Industry: "In1", Range:"20-30 Days", lcount:30},
{Industry: "In1", Range:"30-40 Days", lcount:40},
{Industry: "In1", Range:"40-50 Days", lcount:50},
{Industry: "In2", Range:"0-10 Days", lcount:10},
{Industry: "In2", Range:"10-20 Days", lcount:20},
{Industry: "In2", Range:"20-30 Days", lcount:30},
{Industry: "In2", Range:"30-40 Days", lcount:40},
{Industry: "In2", Range:"40-50 Days", lcount:50}
]);
]]>
</fx:Script>
<mx:BubbleChart id="PriorityLowBubbleChart" width="400" height="250"
minRadius="1"
maxRadius="50" dataProvider="{BBCData}"
showDataTips="true">
<mx:verticalAxis>
<mx:CategoryAxis categoryField="Range" dataProvider="{BBCData}"/>
</mx:verticalAxis>
<mx:horizontalAxis>
<mx:CategoryAxis categoryField="Industry" dataProvider="{BBCData}"/>
</mx:horizontalAxis>
<mx:series>
<mx:BubbleSeries dataProvider="{BBCData}" radiusField="lcount">
</mx:BubbleSeries>
</mx:series>
</mx:BubbleChart>
And the Bubble chart I get is not what I expect. I am looking at the Bubblechart to show bubbles with radius as “count” and the X and Y are denoted by Industry and Range respectively.
So for example, the chart should show a circle of radious 10 at the intersection of Industry In1 and Range 0-10 Days.
In reality, I get the following graph

So for every data point it creates a new X item (“in1” repeated 5 times, “in2” repeated 5 times), in actual, it should be just one.Same is the case with y-marks.
It appears the chart is not able to group same field values on both the axes and hence this problem
is there a different data structure needs to be employed, or are there chart settings that solve this?
I am able to show bubble in bubble chart, Please find below code, which may give you some idea. I have commented few lines you can uncomment it and view the result, for you actual result you have to work little more on it and understand GroupingCollection concept. for refrel link How do I display grouped XML data in a Flex pie chart? : –
Or another way to achive what you are looking is as below: –
Hope this may help you….