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.
Unfortunately, activation email could not send to your email. Please try again.

How to pass series to Chart in code behind

Thread ID:

Created:

Updated:

Platform:

Replies:

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

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 01:55 AM

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.

[VB]

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))

        Me.Chart1.Series.Add(ser)

    End Sub

End Class 

For more reference please refer our online help document in the following link.
http://help.syncfusion.com/ug/js/documents/overview8.htm

Let us know your concerns. 

Thanks,
Bharathiraja.

CONFIRMATION

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.

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.

;