There are currently: 61 anonymous users online. 0 of 204 registered users online. There have been 10509 Page Hits by 8057 users
There have been 10509 Page Hits by 8057 users
Bar Thickness (100%)
C# Example Code
{ System.Random r= new System.Random(); chart.Theme = Theme.Oranges; chart.XAxis.MajorTickStep = 4; chart.YAxis.Min = -1.2; chart.YAxis.Max = 1.2; chart.Series[0].Type = ChartType.Bar; chart.BarWidth = 1.0f; for (float f=-180.0f;f<=180.0f;f += 22.5f) { double a = f * (Math.PI/180); double val = Math.Sin(a); chart.Series[0].Data.Add(new DataPoint(val, f.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.Oranges; chart.XAxis.MajorTickStep = 4; chart.YAxis.Min = -1.2; chart.YAxis.Max = 1.2; chart.Series[0].Type = ChartType.Bar; chart.BarWidth = 1.0f; for (float f=-180.0f;f<=180.0f;f += 22.5f) { double a = f * (Math.PI/180); double val = Math.Sin(a); chart.Series[0].Data.Add(new DataPoint(val, f.ToString())); } } </script> </HEAD> <body> <SasqChart:WebChartControl id="chart" runat="server" width="600" height="400" /> </body> </HTML>