As per my current requirement I am currently plotting a set of graphs( multi series ). I want to design a button say "Clear" when the user clicks on this button currently whatever graph are present should be removed. Kindly let me know if any examples or docs related to this
If Your would like to clear the graphics drawn on graph Here is the example
If you want to clear the graphs - try set the data provider to null
If you just want to remove the charts from being displayed, call removeChild(myChart).
If you want to clear the data in the chart, and don't mind wiping out the data, set the dataProvider to null or do something lie this:
myAC = null;
If you don't want to wipe out the data, initially populate the dataprovider like this:
myDP:ArrayCollection = new ArrayCollection(myStoredAC.toArray());
And then reset it like this:
myDP = null; or this: myDP.removeAll();
Then later you can repopulate it with myDP = new ArrayCollection(myStoredAC.toArray());
If this post answers your question or helps, please mark it as such.
Greg Lafrance - Flex 2 and 3 ACE certified
Flex / AIR Development, Training, and Support Services