1 | using System;
|
---|
2 | using System.Collections.Generic;
|
---|
3 | using System.Data;
|
---|
4 | using System.Configuration;
|
---|
5 | using System.Collections;
|
---|
6 | using System.Web;
|
---|
7 | using System.Web.Security;
|
---|
8 | using System.Web.UI;
|
---|
9 | using System.Web.UI.WebControls;
|
---|
10 | using System.Web.UI.WebControls.WebParts;
|
---|
11 | using System.Web.UI.HtmlControls;
|
---|
12 | using OpenFlashChart;
|
---|
13 | using LineHollow=OpenFlashChart.LineHollow;
|
---|
14 | using ToolTip=OpenFlashChart.ToolTip;
|
---|
15 | using ToolTipStyle=OpenFlashChart.ToolTipStyle;
|
---|
16 |
|
---|
17 | public partial class datafile_Scatter : System.Web.UI.Page
|
---|
18 | {
|
---|
19 | protected void Page_Load(object sender, EventArgs e)
|
---|
20 | {
|
---|
21 | OpenFlashChart.OpenFlashChart chart = new OpenFlashChart.OpenFlashChart();
|
---|
22 | List<ScatterValue> data1 = new List<ScatterValue>();
|
---|
23 | Random rand = new Random(DateTime.Now.Millisecond);
|
---|
24 | for (double i = 0; i < 12; i++)
|
---|
25 | {
|
---|
26 | data1.Add(new ScatterValue(i,rand.Next(30),5));
|
---|
27 | }
|
---|
28 |
|
---|
29 | OpenFlashChart.Scatter line1 = new Scatter("#876543",10);
|
---|
30 | line1.Values = data1;
|
---|
31 | chart.AddElement(line1);
|
---|
32 |
|
---|
33 | chart.Title = new Title("Scatter Demo");
|
---|
34 | chart.Y_Axis.SetRange(0, 35, 5);
|
---|
35 |
|
---|
36 | chart.X_Axis.SetRange(0,13);
|
---|
37 |
|
---|
38 | Response.Clear();
|
---|
39 | Response.CacheControl = "no-cache";
|
---|
40 | Response.Write(chart.ToString());
|
---|
41 | Response.End();
|
---|
42 | }
|
---|
43 | }
|
---|