Hello all, This shouldn't be too difficult, but I haven't had much experience with Flex charts, so the answer isn't apparent to me: I'd like to have a BubbleChart which has a single BubbleSeries (see below). However, I'd like each bubble in the series to be a different color based on a varying attribute (in the example below, the attribute would be discipline_id). So, in the example below, all 3 bubbles are currently the default orange color, but I'd like them to be red, blue, green (and so on, for any number of data records/disciplines). I'd also like to have a legend which displays the mapping between the discipline_id attribute and the bubble color.
Finally, I'd like to format the chart so that the axis lines corresponding to x == 1 and y == 1 are bold. Essentially, this chart should be a four-quadrant chart with an origin of (1,1). If anyone can point me in the right direction toward accomplishing any of these goals, it would be greatly appreciated. Thanks! Jim ------- DisciplinesBubble.mxml --------------------------------------------------- <mx:Application height="100%" width="100%" xmlns:mx="http://www.macromedia.com/2003/mxml"> <mx:Script><![CDATA[ function formatDataTip(item: Object) { return "<b>" + item.hitData.element.name + ": </b>" + item.hitData.item.DISCIPLINE_ID +"<br>" + "<b>CPI: </b>" + item.hitData.item.CPI + "<br>" + "<b>SPI: </b>" + item.hitData.item.SPI + "<br>" + "<b>Earning Possible: </b>" + item.hitData.item.EARNED_POSSIBLE; } ]]></mx:Script> <mx:Model id="model"> <DATA_RECORD> <CPI>1.7579</CPI> <SPI>0.5947</SPI> <EARNED_POSSIBLE>2100</EARNED_POSSIBLE> <DISCIPLINE_ID>11</DISCIPLINE_ID> </DATA_RECORD> <DATA_RECORD> <CPI>1.52</CPI> <SPI>0.765</SPI> <EARNED_POSSIBLE>1000</EARNED_POSSIBLE> <DISCIPLINE_ID>611</DISCIPLINE_ID> </DATA_RECORD> <DATA_RECORD> <CPI>1.7146</CPI> <SPI>0.6168</SPI> <EARNED_POSSIBLE>3100</EARNED_POSSIBLE> <DISCIPLINE_ID>2593</DISCIPLINE_ID> </DATA_RECORD> </mx:Model> <mx:BubbleChart dataProvider="{model.DATA_RECORD}" dataTipFunction="formatDataTip" height="100%" id="chart" showDataTips="true" width="100%"> <mx:horizontalAxis> <mx:LinearAxis maximum="2" minimum="0"/> </mx:horizontalAxis> <mx:verticalAxis> <mx:LinearAxis maximum="2" minimum="0"/> </mx:verticalAxis> <mx:series> <mx:Array> <mx:BubbleSeries name="Discipline" radiusField="EARNED_POSSIBLE" xField="CPI" yField="SPI"/> </mx:Array> </mx:series> </mx:BubbleChart> </mx:Application> -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/