This sample demonstrates the Area chart type.
For detailed implementation, please take a look at the Aspx code tab.
<%@ Page Language="C#" %>
<%@ Register assembly="JQChart.Web" namespace="JQChart.Web.UI.WebControls" tagprefix="jqChart" %>
<!DOCTYPE html>
<html>
<head runat="server">
<title></title>
<link rel="stylesheet" type="text/css" href="~/Content/jquery.jqChart.css" />
<link rel="stylesheet" type="text/css" href="~/Content/themes/le-frog/jquery-ui-1.8.20.css" />
<script src="<% = ResolveUrl("~/Scripts/jquery-1.11.1.min.js") %>" type="text/javascript"></script>
<script src="<% = ResolveUrl("~/Scripts/jquery.jqChart.min.js") %>" type="text/javascript"></script>
</head>
<body>
<form runat="server">
<asp:ObjectDataSource ID="ObjectDataSource1"
runat="server"
SelectMethod="GetData"
TypeName="SamplesBrowser.Models.ThreeSeriesChartData"></asp:ObjectDataSource>
<jqChart:Chart ID="Chart1" Width="500px" Height="300px" runat="server" DataSourceID="ObjectDataSource1">
<Title Text="Three Area Series"></Title>
<Animation Enabled="True" Duration="00:00:01" />
<Shadows Enabled="true" />
<Series>
<jqChart:AreaSeries XValuesField="ValueX1" YValuesField="ValueY1" Title="Area 1">
<FillStyle Color="#418CF0">
</FillStyle>
</jqChart:AreaSeries>
<jqChart:AreaSeries XValuesField="ValueX2" YValuesField="ValueY2" Title="Area 2">
<FillStyle Color="#FCB441">
</FillStyle>
</jqChart:AreaSeries>
<jqChart:AreaSeries XValuesField="ValueX3" YValuesField="ValueY3" Title="Area 3">
<FillStyle Color="#E0400A">
</FillStyle>
</jqChart:AreaSeries>
</Series>
</jqChart:Chart>
</form>
</body>
</html>
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace SamplesBrowser.Models
{
public class EmptyChartModel
{
}
}