SeriesList sList = new SeriesList();
sList.ChartType = ChartType.StackedSpline;
Random r = new Random();
for(int i = 0; i < 3; i++)
{
Series sr = new Series();
sr.AreaType = AreaType.CurvedArea;
sr.Line.LineWidth = 3;
for(int x = 0; x < 172; x++)
{
SeriesItem item = new SeriesItem();
item.Name = x.ToString();
item.YValue = r.Next(90);
sr.items.Add(item);
}
sList.SeriesCollection.Add(sr);
}
this.sHippoChart1.ScrollXaxisWidth = 30;
this.sHippoChart1.SeriesListDictionary.Add(sList);
this.sHippoChart1.DrawChart();
Dim sList As New. SeriesList()
sList.ChartType = ChartType.StackedSpline
Dim r As New. Random()
For i As Integer = 0 To 2
Dim sr As New. Series()
sr.AreaType = AreaType.CurvedArea
sr.Line.LineWidth = 3
For x As Integer = 0 To 171
Dim item As New. SeriesItem()
item.Name = x.ToString()
item.YValue = r.[Next](90)
sr.items.Add(item)
Next
sList.SeriesCollection.Add(sr)
Next
Me.sHippoChart1.ScrollXaxisWidth = 30
Me.sHippoChart1.SeriesListDictionary.Add(sList)
Me.sHippoChart1.DrawChart()