We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to pass series to Chart in code behind

Thread ID:





117209 Sep 5,2014 04:23 PM UTC Sep 8,2014 05:55 AM UTC ASP.NET Web Forms 1
Tags: Chart
Roimer Machacón Otero
Asked On September 5, 2014 04:23 PM UTC

Hi, we are using a chart in our application, Now when are using ChartSeries this not work, appear undefined.
Attachment: error_chartseries_4ca42ccf.rar

Bharathiraja K [Syncfusion]
Replied On September 8, 2014 05:55 AM UTC

Hi Nestor,

Thanks for using Syncfusion products.

We suggest you to use “Series” to add points instead of using “ChartSeries” and refer the name space as mentioned in the below code snippet.


Imports Syncfusion.JavaScript.DataVisualization
Imports Syncfusion.JavaScript.DataVisualization.Models
Imports System.Collections.Generic
Imports System.Linq
Imports System.Web
Imports System.Web.UI
Imports System.Web.UI.WebControls 

Partial Public Class _Default

    Inherits Page
    Protected Sub Page_Load(sender As Object, e As EventArgs)

        Dim ser As New Series()

        ser.Type = SeriesType.Pie
        ser.Points.Add(New Points("SUV", 25))
        ser.Points.Add(New Points("Car", 37))
        ser.Points.Add(New Points("Pickup", 15))
        ser.Points.Add(New Points("Minivan", 23))


    End Sub

End Class 

For more reference please refer our online help document in the following link.

Let us know your concerns. 



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon