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. Image for the cookie policy date

Cant run code from example

Hello. Cant simulate example from this link :
https://help.syncfusion.com/aspnet/chart/getting-started#populate-chart-with-data
Part:
populate chart with data.
Default.aspx code:
<%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="aspnet._Default" %>

ASP.NET ????????? ??????

ASP.NET is a free web framework for building great Web sites and Web applications using HTML, CSS, and JavaScript.



1 Reply

DD Dharanidharan Dharmasivam Syncfusion Team November 29, 2016 10:22 AM UTC

Hi Ilya, 

Thanks for using Syncfusion product. 

We have analyzed your query. From the provided code snippet we found that you have missed the data to be passed in the list. So kindly add data to be passed in the list as in the below code snippet, 

Code Snippet: 
ASP.NET: 

       System.Collections.Generic.List<ChartData> data = new System.Collections.Generic.List<ChartData>(); 
       data.Add(new ChartData("Jan", 35)); 
       data.Add(new ChartData("Feb", 28)); 
       data.Add(new ChartData("Mar", 34)); 
       //... 
       this.Chart1.DataSource = data; 
       this.DataBind();  


Screenshot for rendered chart: 
 

Screenshot for Excel: 
 
For you reference we have attached the sample. Kindly find the sample from below location, 
  
Thanks, 
Dharani. 


Loader.
Live Chat Icon For mobile
Up arrow icon