开发者

Is there an event dispatched when a series is added to a chart in flex?

开发者 https://www.devze.com 2022-12-23 13:33 出处:网络
I want to know when the data has been added开发者_如何学Python to a chart so I can use localToData() to draw on the chart.If I do this immediately after setting the dataProvider the chart has not yet

I want to know when the data has been added开发者_如何学Python to a chart so I can use localToData() to draw on the chart. If I do this immediately after setting the dataProvider the chart has not yet updated, so the the call to localToData will not return the correct values. Is there an event I can subscribe to so I know the chart has drawn the data in the dataProvider?


There is a CollectionChanged event, so you can listen to it. Also, initial data can be fetched using initialize/creationComplete event in the Chart component.


The updateComplete event whilst not strictly for this purpose, does fire after the series updateDisplayList method has been called, which is close enough.

0

精彩评论

暂无评论...
验证码 换一张
取 消