SasqChart
Home
Home
Chart Gallery
Thumbs
Bar Charts
Stacked Bar
Line Charts
Area Charts
Stacked Area
Pie Charts
Mixed Charts
Chart Styles
Axis Options
Layout Options
ASP.Net Tutorials
Base Example
DataSet Bind
WinForm Tutorials
Base Example
DataSet Bind
  Forums Login
Username:
Password:
 
Create account
Forget password?
 Who is Online

There are currently:
7 anonymous users online.

0 of 3,596 registered users online.

There have been 292507 Page Hits by 210466 users

 Search Forums

More search options


Line Thickness

C# Example Code

{
    chart.Legend.Visible = true;
    chart.Legend.Style.Font = new Font("Arial", 8);
    for (int i=0;i<5;i++)
    {
        chart.Series[i].Type = ChartType.Line;
        chart.Series[i].Style.LineWidth = (i*2);
        chart.Series[i].Name =    chart.Series[i].Style.LineWidth.ToString() + "pts";

        for (int j=0;j<10;j++)
        {
            chart.Series[i].Data.Add(new DataPoint(i*2 + ((j%2)*1.5), 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)		
            {
                chart.Legend.Visible = true;
                chart.Legend.Style.Font = new Font("Arial", 8);
                for (int i=0;i<5;i++)
                {
                    chart.Series[i].Type = ChartType.Line;
                    chart.Series[i].Style.LineWidth = (i*2);
                    chart.Series[i].Name =    chart.Series[i].Style.LineWidth.ToString() + "pts";
            
                    for (int j=0;j<10;j++)
                    {
                        chart.Series[i].Data.Add(new DataPoint(i*2 + ((j%2)*1.5), j.ToString()));
                    }
                }            
            }

        </script>
    </HEAD>
    <body>
        <SasqChart:WebChartControl id="chart" runat="server" width="600" height="400" />
    </body>
</HTML>