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">
<Background FillStyleType="LinearGradient" X1="0">
<ColorStops>
<jqChart:ColorStop Color="#d2e6c9" />
<jqChart:ColorStop Color="white" Offset="1" />
</ColorStops>
</Background>
<Title Text="Unbound Chart"></Title>
<Border StrokeStyle="#6ba851" />
<Legend><Title Text="Legend"></Title></Legend>
<Animation Enabled="True" Duration="00:00:01" />
<Shadows Enabled="true" />
<Series>
<jqChart:ColumnSeries Title="Series 1">
<XValues>
<jqChart:StringValue Value="Cat 1" />
<jqChart:StringValue Value="Cat 2" />
<jqChart:StringValue Value="Cat 3" />
<jqChart:StringValue Value="Cat 4" />
<jqChart:StringValue Value="Cat 5" />
<jqChart:StringValue Value="Cat 6" />
</XValues>
<YValues>
<jqChart:DoubleValue Value="70" />
<jqChart:DoubleValue Value="40" />
<jqChart:DoubleValue Value="85" />
<jqChart:DoubleValue Value="50" />
<jqChart:DoubleValue Value="25" />
<jqChart:DoubleValue Value="40" />
</YValues>
<FillStyle FillStyleType="LinearGradient" Y1="0">
<ColorStops>
<jqChart:ColorStop Color="#65c2e8" />
<jqChart:ColorStop Color="#55b3e1" Offset="0.49" />
<jqChart:ColorStop Color="#3ba6dc" Offset="0.5" />
<jqChart:ColorStop Color="#2794d4" Offset="1" />
</ColorStops>
</FillStyle>
</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
{
}
}