There are currently: 2 anonymous users online. 0 of 572 registered users online. There have been 110883 Page Hits by 85044 users
There have been 110883 Page Hits by 85044 users
None-Rotated Labels
C# Example Code
{ System.Random r= new System.Random(); chart.Theme = Theme.GrayScale; chart.Series[0].Type = ChartType.Line; chart.XAxis.MajorTickStep = 180; chart.XAxis.RotateLabels = false; for (int i=-360;i<=360;i++) { double a = i * (Math.PI/180); double val = (Math.Sin(a*2.5) + Math.Sin(a*3.5)) * 0.5; chart.Series[0].Data.Add(new DataPoint(val, i.ToString("n3"))); } }
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.GrayScale; chart.Series[0].Type = ChartType.Line; chart.XAxis.MajorTickStep = 180; chart.XAxis.RotateLabels = false; for (int i=-360;i<=360;i++) { double a = i * (Math.PI/180); double val = (Math.Sin(a*2.5) + Math.Sin(a*3.5)) * 0.5; chart.Series[0].Data.Add(new DataPoint(val, i.ToString("n3"))); } } </script> </HEAD> <body> <SasqChart:WebChartControl id="chart" runat="server" width="600" height="400" /> </body> </HTML>