flex 线图上加点!
基本的方法是在线图上画点!
代码如下:
?
描点代码:
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); }?