There are currently: 66 anonymous users online. 0 of 204 registered users online. There have been 10522 Page Hits by 8070 users
There have been 10522 Page Hits by 8070 users
Line Start and End Anchor Caps
C# Example Code
{ System.Random r= new System.Random(); chart.YAxis.Min = -1; chart.Legend.Visible = true; chart.Legend.Style.Font = new Font("Arial", 8); int i = 0; for(LineCap cap=LineCap.NoAnchor; cap<=LineCap.ArrowAnchor; cap++) { chart.Series[i].Type = ChartType.Line; chart.Series[i].Style.LineWidth = 10.0f; chart.Series[i].Style.LineStartCap = cap; chart.Series[i].Style.LineEndCap = cap; chart.Series[i].Name = cap.ToString(); for (int j=0;j<5;j++) { chart.Series[i].Data.Add(new DataPoint(i*2 + ((j%2)*1.5), j.ToString())); } i++; } }
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.YAxis.Min = -1; chart.Legend.Visible = true; chart.Legend.Style.Font = new Font("Arial", 8); int i = 0; for(LineCap cap=LineCap.NoAnchor; cap<=LineCap.ArrowAnchor; cap++) { chart.Series[i].Type = ChartType.Line; chart.Series[i].Style.LineWidth = 10.0f; chart.Series[i].Style.LineStartCap = cap; chart.Series[i].Style.LineEndCap = cap; chart.Series[i].Name = cap.ToString(); for (int j=0;j<5;j++) { chart.Series[i].Data.Add(new DataPoint(i*2 + ((j%2)*1.5), j.ToString())); } i++; } } </script> </HEAD> <body> <SasqChart:WebChartControl id="chart" runat="server" width="600" height="400" /> </body> </HTML>