There are currently: 2 anonymous users online. 0 of 572 registered users online. There have been 110887 Page Hits by 85044 users
There have been 110887 Page Hits by 85044 users
Mixed Smooth Stacked Area and Smooth Line Chart
C# Example Code
{ System.Random r= new System.Random(); chart.Series[0].Type = ChartType.SmoothStackedArea; chart.Series[1].Type = ChartType.SmoothStackedArea; chart.Series[2].Type = ChartType.SmoothLine; chart.Series[3].Type = ChartType.SmoothLine; chart.Series[4].Type = ChartType.SmoothLine; chart.Series[2].Style.LineWidth = 5.0f; chart.Series[3].Style.LineWidth = 5.0f; chart.Series[4].Style.LineWidth = 5.0f; chart.Series[2].Style.LineDashStyle = DashStyle.Dot; chart.Series[3].Style.LineDashStyle = DashStyle.DashDot; chart.Series[4].Style.LineDashStyle = DashStyle.Dash; for(int i=0; i<5; i++) { for(int j=0; j<10; j++) { chart.Series[i].Data.Add(new DataPoint(((5-i) * 100) + (r.NextDouble() * 100), j.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.Series[0].Type = ChartType.SmoothStackedArea; chart.Series[1].Type = ChartType.SmoothStackedArea; chart.Series[2].Type = ChartType.SmoothLine; chart.Series[3].Type = ChartType.SmoothLine; chart.Series[4].Type = ChartType.SmoothLine; chart.Series[2].Style.LineWidth = 5.0f; chart.Series[3].Style.LineWidth = 5.0f; chart.Series[4].Style.LineWidth = 5.0f; chart.Series[2].Style.LineDashStyle = DashStyle.Dot; chart.Series[3].Style.LineDashStyle = DashStyle.DashDot; chart.Series[4].Style.LineDashStyle = DashStyle.Dash; for(int i=0; i<5; i++) { for(int j=0; j<10; j++) { chart.Series[i].Data.Add(new DataPoint(((5-i) * 100) + (r.NextDouble() * 100), j.ToString())); } } } </script> </HEAD> <body> <SasqChart:WebChartControl id="chart" runat="server" width="600" height="400" /> </body> </HTML>