Hi, I'm starting out with Syncfusion and trying a basic test.
I am following the online example and everything seems to be configured correctly.
Onscreen the chart is showing in asp.net but when I run the debugger (local host) the screen remains blank.
I have copied the data (as per online example) into code behind.
Pasting code below.
Please help.
rgs
aspx as follows:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="SyncfusionASPNETWebApplication1.WebForm1" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<script src="http://cdn.syncfusion.com/js/assets/external/jquery-1.10.2.min.js"></script>
<!-- Essential JS UI widget -->
<script src="http://cdn.syncfusion.com/15.3.0.33/js/web/ej.web.all.min.js"></script>
</head>
<body>
<form id="form1" runat="server">
<div>
<ej:Chart ID="Chart1" runat="server">
<Title Text="Sales Analysis"></Title>
<Series>
</Series>
</ej:Chart>
</div>
</form>
</body>
</html>
and codebehind:
namespace SyncfusionASPNETWebApplication1
{
public partial class WebForm1 : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
List<ChartData> data = new List<ChartData>();
data.Add(new ChartData("Jan", 35));
data.Add(new ChartData("Feb", 28));
data.Add(new ChartData("Mar", 34));
data.Add(new ChartData("Apr", 32));
data.Add(new ChartData("May", 40));
data.Add(new ChartData("Jun", 32));
data.Add(new ChartData("Jul", 35));
data.Add(new ChartData("Aug", 55));
data.Add(new ChartData("Sep", 38));
data.Add(new ChartData("Oct", 30));
data.Add(new ChartData("Nov", 25));
data.Add(new ChartData("Dec", 32));
this.Chart1.DataSource = data;
this.DataBind();
}
}
public class ChartData
{
public string Month;
public double Sales;
public ChartData(string month, double sales)
{
this.Month = month;
this.Sales = sales;
}
}