|
|
|
|
|
|
|
|
There are currently:
7 anonymous users online.
0 of 3,596 registered users online.
There have been 292508 Page Hits by
210466 users
|
|
|
|
|
SmoothArea Chart with Transparent Multiple Series
C# Example Code
{
System.Random r= new System.Random();
chart.Theme = Theme.Greens;
for (int i=0;i<3;i++)
{
chart.Series[i].Type = ChartType.SmoothArea;
chart.Series[i].Style.LineColor = Color.Black;
for (int j=0;j<10;j++)
{
chart.Series[i].Data.Add(new DataPoint(r.NextDouble()* 100, j.ToString()));
}
}
chart.Series[0].Style.FillColor = Color.FromArgb(0xff, 0, 0x80, 0);
chart.Series[1].Style.FillColor = Color.FromArgb(0x80, 0xFF, 0xff, 0);
chart.Series[2].Style.FillColor = Color.FromArgb(0x40, 0, 0xff, 0xFF);
}
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.Greens;
for (int i=0;i<3;i++)
{
chart.Series[i].Type = ChartType.SmoothArea;
chart.Series[i].Style.LineColor = Color.Black;
for (int j=0;j<10;j++)
{
chart.Series[i].Data.Add(new DataPoint(r.NextDouble()* 100, j.ToString()));
}
}
chart.Series[0].Style.FillColor = Color.FromArgb(0xff, 0, 0x80, 0);
chart.Series[1].Style.FillColor = Color.FromArgb(0x80, 0xFF, 0xff, 0);
chart.Series[2].Style.FillColor = Color.FromArgb(0x40, 0, 0xff, 0xFF);
}
</script>
</HEAD>
<body>
<SasqChart:WebChartControl id="chart" runat="server" width="600" height="400" />
</body>
</HTML>
|