There are currently: 3 anonymous users online. 0 of 3,596 registered users online. There have been 292530 Page Hits by 210467 users
There have been 292530 Page Hits by 210467 users
RangeArea Chart
C# Example Code
{ System.Random r= new System.Random(); chart.Theme = Theme.Blues; chart.Series[0].Type = ChartType.SmoothRangeArea; chart.Series[1].Type = ChartType.SmoothLine; double val = 5.0; double spread = 1; for (int i=0; i<=5; i++) { val += r.NextDouble() + 1.0; spread += r.NextDouble() * 5; chart.Series[0].Data.Add(new DataPoint(val-spread, val+spread, i.ToString())); chart.Series[1].Data.Add(new DataPoint(val, i.ToString())); } }
ASP.Net C# Example
<%@ Register tagPrefix="SasqChart" Namespace="SasqChart" Assembly="SasqChart" %> <%@ Page Language="C#" %> <%@ Import Namespace="System.Drawing" %> <%@ Import Namespace="System.Drawing.Drawing2D" %> <%@ Import Namespace="System.Drawing.Imaging" %> <HTML> <HEAD> <title>Simple C# SasqChart Example</title> <script runat="server"> private void Page_Load(object sender, System.EventArgs e) { System.Random r= new System.Random(); chart.Theme = Theme.Blues; chart.Series[0].Type = ChartType.SmoothRangeArea; chart.Series[1].Type = ChartType.SmoothLine; double val = 5.0; double spread = 1; for (int i=0; i<=5; i++) { val += r.NextDouble() + 1.0; spread += r.NextDouble() * 5; chart.Series[0].Data.Add(new DataPoint(val-spread, val+spread, i.ToString())); chart.Series[1].Data.Add(new DataPoint(val, i.ToString())); } } </script> </HEAD> <body> <SasqChart:WebChartControl id="chart" runat="server" width="600" height="400" /> </body> </HTML>