This sample demonstrates how to create an unbound chart.
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">
<jqChart:Chart ID="Chart1" Width="500px" Height="300px" runat="server">
<Title Text="Empty Data Points"></Title>
<Animation Enabled="True" Duration="00:00:01" />
<Series>
<jqChart:ColumnSeries NullHandling="EmptyPoint">
<XValues>
<jqChart:DateTimeValue Value="2010/1/1" />
<jqChart:DateTimeValue Value="2010/1/2" />
<jqChart:DateTimeValue />
<jqChart:DateTimeValue Value="2010/1/4" />
<jqChart:DateTimeValue />
<jqChart:DateTimeValue Value="2010/1/6" />
<jqChart:DateTimeValue Value="2010/1/7" />
</XValues>
<YValues>
<jqChart:DoubleValue Value="36" />
<jqChart:DoubleValue Value="30" />
<jqChart:DoubleValue />
<jqChart:DoubleValue Value="25" />
<jqChart:DoubleValue />
<jqChart:DoubleValue Value="16" />
<jqChart:DoubleValue Value="30" />
</YValues>
<Markers Size="12">
<FillStyle Color="Black"></FillStyle>
</Markers>
<EmptyPointStyle StrokeStyle="Red" LineWidth="2">
<FillStyle Color="#cccccc"></FillStyle>
<Marker MarkerType="Cross" Size="10" LineWidth="4" StrokeStyle="Red">
<FillStyle Color="Red"></FillStyle>
</Marker>
</EmptyPointStyle>
</jqChart:ColumnSeries>
</Series>
</jqChart:Chart>
</form>
</body>
</html>
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace SamplesBrowser.Models
{
public class EmptyChartModel
{
}
}