You can set the dataProvider on the series rather than on the line chart. To add (or remove) series, you need to reassign the series property of the Chart--you can't just push onto the series Array (or the chart won't "know" that there are new series to render).
can u give a sample code for that..our line series should also dynamically change according to the data retrieved from the fms server.
what we have done is we have an admin console where bandwidth of each user connected to the server is shown in the dataprovider.we are able to show the bandwidth of one user only(we have only one line series)
What we need is to show the bandwidth of each user in a separate line series in the chart and the value should change dynamically.
A chart can have only 1 dataProvider which in my case is an ArrayCollection.
The chart will update every time the dataProvider changes if you use binding.
So you have to write a function that periodically populates the ArrayCollection with data from the server and the chart will update automatically.
'Using line charts' tutorial from Adobe: http://livedocs.adobe.com/flex/3/html/charts_types_08.html#243339