基本的方法是在线图上画点!
代码如下:
描点代码:
private function addRender(event:Event):void
{
var factory:ClassFactory = new ClassFactory(LineSeriesItemRenderer);
factory.properties = {color:0xE48701};
(event.target as LineSeries).setStyle("itemRenderer", factory);
}
private function addRenderM(event:Event):void
{
var factory:ClassFactory = new ClassFactory(LineSeriesItemRenderer);
factory.properties = {color:0x33FF66};
(event.target as LineSeries).setStyle("itemRenderer", factory);
}
分享到:
2011-04-02 18:35
浏览 1313
评论