This sample demonstrates how to create a project schedule with the Gantt 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">
<jqChart:Chart ID="Chart1" Width="500px" Height="300px" runat="server">
<Title Text="Project Schedule"></Title>
<Animation Enabled="True" Duration="00:00:01" />
<Series>
<jqChart:GanttSeries Title="Alan">
<XValues>
<jqChart:StringValue Value="Design" />
<jqChart:StringValue Value="Development" />
<jqChart:StringValue Value="Design" />
<jqChart:StringValue Value="Development" />
<jqChart:StringValue Value="Testing" />
</XValues>
<FromValues>
<jqChart:DateTimeValue Value="2010/1/1" />
<jqChart:DateTimeValue Value="2010/1/21" />
<jqChart:DateTimeValue Value="2010/2/16" />
<jqChart:DateTimeValue Value="2010/3/1" />
<jqChart:DateTimeValue Value="2010/3/21" />
</FromValues>
<ToValues>
<jqChart:DateTimeValue Value="2010/1/20" />
<jqChart:DateTimeValue Value="2010/2/15" />
<jqChart:DateTimeValue Value="2010/2/28" />
<jqChart:DateTimeValue Value="2010/3/20" />
<jqChart:DateTimeValue Value="2010/4/10" />
</ToValues>
</jqChart:GanttSeries>
<jqChart:GanttSeries Title="Carrie">
<XValues>
<jqChart:StringValue Value="Design" />
<jqChart:StringValue Value="Development" />
<jqChart:StringValue Value="Testing" />
</XValues>
<FromValues>
<jqChart:DateTimeValue Value="2010/1/21" />
<jqChart:DateTimeValue Value="2010/2/16" />
<jqChart:DateTimeValue Value="2010/3/1" />
</FromValues>
<ToValues>
<jqChart:DateTimeValue Value="2010/2/15" />
<jqChart:DateTimeValue Value="2010/2/28" />
<jqChart:DateTimeValue Value="2010/3/20" />
</ToValues>
</jqChart:GanttSeries>
<jqChart:GanttSeries Title="Katie">
<XValues>
<jqChart:StringValue Value="Design" />
<jqChart:StringValue Value="Development" />
<jqChart:StringValue Value="Testing" />
<jqChart:StringValue Value="Testing" />
</XValues>
<FromValues>
<jqChart:DateTimeValue />
<jqChart:DateTimeValue Value="2010, 3, 21" />
<jqChart:DateTimeValue Value="2010, 2, 16" />
<jqChart:DateTimeValue Value="2010, 4, 11" />
</FromValues>
<ToValues>
<jqChart:DateTimeValue />
<jqChart:DateTimeValue Value="2010, 4, 10" />
<jqChart:DateTimeValue Value="2010, 2, 28" />
<jqChart:DateTimeValue Value="2010, 5, 1" />
</ToValues>
</jqChart:GanttSeries>
</Series>
</jqChart:Chart>
</form>
</body>
</html>