xmlns:mx="library://ns.adobe.com/flex/mx" xmlns:s="library://ns.adobe.com/flex/spark"
creationComplete="setStylesInit();" height="600">
import mx.core.BitmapAsset;
import mx.collections.ArrayCollection;
[Bindable]
public var expenses:ArrayCollection = new ArrayCollection([
{month:"Jan", profit:20, expenses:15, amount:145},
{month:"Feb", profit:1, expenses:2, amount:60},
{month:"Mar", profit:15, expenses:5, amount:3}
]);
[Bindable]
[Embed(source="a.jpg")]
public var myButterfly:Class;
private function setStylesInit():void {
series1.setStyle("itemRenderer", new ClassFactory(myButterfly));
series1.setStyle("legendMarkerRenderer", new ClassFactory(myButterfly));
}
showDataTips="true">
displayName="Plot 1" radius="20" />
displayName="Plot 2" itemRenderer="mx.charts.renderers.CircleItemRenderer" />
displayName="Plot 3" itemRenderer="mx.charts.renderers.CrossItemRenderer" />