|
|
|
|
|
|
|
|
There are currently:
64 anonymous users online.
0 of 204 registered users online.
There have been 10520 Page Hits by
8068 users
|
|
|
|
|
Base Example
The following examples on this page generate the following chart
For lots more example code, you can click on any chart in the galleries to see the code that generates them.
C# Code
<%@ Register tagPrefix="SasqChart" Namespace="SasqChart" Assembly="SasqChart" %>
<%@ Page Language="C#" %>
<HTML>
<HEAD>
<title>Simple C# SasqChart Example</title>
<script runat="server">
private void Page_Load(object sender, System.EventArgs e)
{
chart.YAxis.Max = 100;
chart.Series[0].Type = ChartType.SmoothLine;
chart.Series[0].Data.Add(new DataPoint( 5, "Jan"));
chart.Series[0].Data.Add(new DataPoint(15, "Feb"));
chart.Series[0].Data.Add(new DataPoint(33, "Mar"));
chart.Series[0].Data.Add(new DataPoint(60, "Apr"));
chart.Series[0].Data.Add(new DataPoint(34, "May"));
chart.Series[0].Data.Add(new DataPoint(45, "Jun"));
chart.Series[0].Data.Add(new DataPoint(80, "Jul"));
chart.Series[0].Data.Add(new DataPoint(30, "Aug"));
chart.Series[0].Data.Add(new DataPoint(32, "Sep"));
chart.Series[0].Data.Add(new DataPoint(45, "Oct"));
chart.Series[0].Data.Add(new DataPoint(23, "Nov"));
chart.Series[0].Data.Add(new DataPoint(10, "Dec"));
}
</script>
</HEAD>
<body>
<SasqChart:WebChartControl id="chart" runat="server" width="600" height="350" />
</body>
</HTML>
VB Code
<%@ Page Language="VB" %>
<%@ Register tagPrefix="SasqChart" Namespace="SasqChart" Assembly="SasqChart" %>
<HTML>
<HEAD>
<title>Simple VB SasqChart Example</title>
<script runat="server" id="Script1">
Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)
chart.YAxis.Max = 100
chart.Series(0).Type = ChartType.SmoothLine
chart.Series(0).Data.Add(new DataPoint( 5, "Jan"))
chart.Series(0).Data.Add(new DataPoint(15, "Feb"))
chart.Series(0).Data.Add(new DataPoint(33, "Mar"))
chart.Series(0).Data.Add(new DataPoint(60, "Apr"))
chart.Series(0).Data.Add(new DataPoint(34, "May"))
chart.Series(0).Data.Add(new DataPoint(45, "Jun"))
chart.Series(0).Data.Add(new DataPoint(80, "Jul"))
chart.Series(0).Data.Add(new DataPoint(30, "Aug"))
chart.Series(0).Data.Add(new DataPoint(32, "Sep"))
chart.Series(0).Data.Add(new DataPoint(45, "Oct"))
chart.Series(0).Data.Add(new DataPoint(23, "Nov"))
chart.Series(0).Data.Add(new DataPoint(10, "Dec"))
End Sub
</script>
</HEAD>
<body>
<SasqChart:WebChartControl id="chart" runat="server" width="600" height="350" />
</body>
</HTML>
|