SeriesList sList = new SeriesList();
sList.ChartType = ChartType.Spline;
AxisArea ar = new AxisArea("", 1000, 2000);
ar.BackColor = Color.FromArgb(40, Color.SteelBlue);
ar.LegendVisible = false;
sList.AxisFactor.YAxis.Areas.Add(ar);
SeriesList sList2 = new SeriesList();
sList2.AxisFactor.YAxis.SetAxisStep(1000, 2000, 500);
sList2.AxisFactor.YAxis.Areas.Add(ar);
Random r = new Random();
Series sr = new Series();
for(int x = 0; x < 40; x++)
{
SeriesItem item = new SeriesItem();
item.YValue = r.Next(110) * x;
item.Name = x.ToString();
item.XValue = x;
sr.items.Add(item);
}
sList.SeriesCollection.Add(sr);
sList2.SeriesCollection.Add(sr);
this.hHippoChart1.SeriesListDictionary.Add(sList);
this.hHippoChart1.SeriesListDictionary.Add(sList2);
this.hHippoChart1.Titles.Label.ForeColor = Color.SteelBlue;
this.hHippoChart1.DesignType = ChartDesignType.Simple;
this.hHippoChart1.Direction = GraphAreaLocation.Horizontal;
this.hHippoChart1.DrawChart();
Dim sList As New. SeriesList()
sList.ChartType = ChartType.Spline
Dim ar As New. AxisArea("", 1000, 2000)
ar.BackColor = Color.FromArgb(40, Color.SteelBlue)
ar.LegendVisible = False
sList.AxisFactor.YAxis.Areas.Add(ar)
Dim sList2 As New. SeriesList()
sList2.AxisFactor.YAxis.SetAxisStep(1000, 2000, 500)
sList2.AxisFactor.YAxis.Areas.Add(ar)
Dim r As New. Random()
Dim sr As New. Series()
Dim x As Integer = 0
While x < 40
Dim item As New. SeriesItem()
item.YValue = r.[Next](110) * x
item.Name = x.ToString()
item.XValue = x
sr.items.Add(item)
System.Math.Max(System.Threading.Interlocked.Increment(x),x - 1)
End While
sList.SeriesCollection.Add(sr)
sList2.SeriesCollection.Add(sr)
Me.hHippoChart1.SeriesListDictionary.Add(sList)
Me.hHippoChart1.SeriesListDictionary.Add(sList2)
Me.hHippoChart1.Titles.Label.ForeColor = Color.SteelBlue
Me.hHippoChart1.DesignType = ChartDesignType.Simple
Me.hHippoChart1.Direction = GraphAreaLocation.Horizontal
Me.hHippoChart1.DrawChart()