When the dataprovider changes, each series's protected dataChanged
function gets called.
Also, you could access the chart's dataProvider as a ICollection and add
an event listener to it to keep track of the data changes.
Thanks
-Sunil
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of netdeep
Sent: Thursday, May 22, 2008 11:25 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] chart data change events
I need to capture an event for when the data is updated in a chart. I
take a snapshot of the
chart and save it to a file. But when I do it via a custom event which I
fire myself, it fires the
event and takes the screenshot before the update and so just snapshots
the previous state of
the chart. And if I use FlexEvent.UPDATE_COMPLETE, it doesn't register a
change since what
I am doing is adding data to the array which is the dataProvider for the
chart. I can't put an
update event listener to the array itself since the array does not have
any way to reference
back to it's chart.
Any help would be greatly appreciated
image001.jpgimage002.jpg