Hi Howard,
The code supplied looks alright except for one issue:
Dim s0 As ChartSeries = .Chart.Series(0)
If s0 Is Nothing Then
.CreateSeries("Copies0", System.Drawing.Color.CadetBlue, Color.DarkSalmon, ChartSeriesType.Area)
End If
We couldn't find the code by which you assign the newly created series to s0. Also where/how do you add this series to the chart's series collection?
May I suggest the following correction:
Dim s0 As ChartSeries = .Chart.Series(0) |
If s0 Is Nothing Then |
s0 = .CreateSeries("Copies0", System.Drawing.Color.CadetBlue, Color.DarkSalmon, ChartSeriesType.Area) |
.Series.Add(s0); |
End If |
|
Other than that, your code should work fine if you call this method each time the series needs update.
If you have further problems with the chart, please, let us know.
Sincerely yours,
Evtim
the Telerik team