Home > DeveloperSection > Forums > A chart element could not be found in the series collection
Samuel Fernandes
Samuel Fernandes

Total Post:155

Posted on    June-11-2013 7:21 AM

 VB.Net VB.Net 

 1 Reply(s)
 4054  View(s)
Rate this:
Hi Developers,

I'm implementing a chart element in my VB aspx application but it return as error. 

A chart element with the name 'test1' could not be found in the 'SeriesCollection'.

I'm trying as following

    'Create chart series
    Dim AnnualSeries As New Series
    AnnualSeries.Name = "test1"
    AnnualSeries.Points.DataBindXY(MonthArray, GraphVectorY)
    AnnualChart.Series("test1")("DrawingStyle") = "Emboss"

Thanks in advance for any recommendations or solutions.


Total Post:604

Posted on    June-12-2013 7:55 AM

Hi Samuel,

You need to add the Series to the Chart.


My VB might be a bit rusty, but hopefully you get the idea.

Don't want to miss updates? Please click the below button!

Follow MindStick