SeriesList sList = new SeriesList();
sList.AxisFactor.YAxis.SetAxisStep(0, 80, 20);
sList.AxisFactor.YAxis.Markers.Add(new AxisMarker("", 60));
sList.AxisFactor.YAxis.Markers.Add(new AxisMarker("", 20));
sList.AxisFactor.BackColor = Color.Pink;
sList.AxisFactor.YAxis.Markers[0].Line.LineColor = Color.Red;
sList.AxisFactor.YAxis.AnalysisItems[AnalysisCategory.Average].Visible = true;
Random r = new Random();
for(int i = 0; i < 1; i++)
{
Series sr = new Series();
sr.SeriesColor = Color.YellowGreen;
sr.Points.Width = 5;
for(int x = 0; x < 20; x++)
{
SeriesItem item = new SeriesItem();
item.Name = x.ToString();
item.YValue = r.Next(30, 70);
sr.items.Add(item);
}
sList.SeriesCollection.Add(sr);
}
SeriesList sList2 = new SeriesList();
sList2.AxisFactor.YAxis.SetAxisStep(0, 80, 20);
sList2.AxisFactor.YAxis.Markers.Add(new AxisMarker("", 60));
sList2.AxisFactor.YAxis.Markers.Add(new AxisMarker("", 20));
sList2.AxisFactor.BackColor = Color.Pink;
sList2.AxisFactor.YAxis.Markers[0].Line.LineColor = Color.Red;
sList2.AxisFactor.YAxis.AnalysisItems[AnalysisCategory.Average].Visible = true;
for(int i = 0; i < 1; i++)
{
Series sr = new Series();
sr.SeriesColor = Color.YellowGreen;
sr.Points.Width = 5;
for(int x = 0; x < 20; x++)
{
SeriesItem item = new SeriesItem();
item.Name = x.ToString();
item.YValue = r.Next(30, 80);
sr.items.Add(item);
}
sList2.SeriesCollection.Add(sr);
}
this.hHippoChart1.Direction = GraphAreaLocation.Vertical;
sList.AxisFactor.YAxis.AxisMagin = 30;
sList2.AxisFactor.YAxis.AxisMagin = 30;
this.hHippoChart1.SeriesListDictionary.Add(sList);
this.hHippoChart1.SeriesListDictionary.Add(sList2);
this.hHippoChart1.DrawChart();
Dim sList As New. SeriesList()
sList.AxisFactor.YAxis.SetAxisStep(0, 80, 20)
sList.AxisFactor.YAxis.Markers.Add(New AxisMarker("", 60))
sList.AxisFactor.YAxis.Markers.Add(New AxisMarker("", 20))
sList.AxisFactor.BackColor = Color.Pink
sList.AxisFactor.YAxis.Markers(0).Line.LineColor = Color.Red
sList.AxisFactor.YAxis.AnalysisItems(AnalysisCategory.Average).Visible = True
Dim r As New. Random()
For i As Integer = 0 To 0
Dim sr As New. Series()
sr.SeriesColor = Color.YellowGreen
sr.Points.Width = 5
For x As Integer = 0 To 19
Dim item As New. SeriesItem()
item.Name = x.ToString()
item.YValue = r.[Next](30, 70)
sr.items.Add(item)
Next
sList.SeriesCollection.Add(sr)
Next
Dim sList2 As New. SeriesList()
sList2.AxisFactor.YAxis.SetAxisStep(0, 80, 20)
sList2.AxisFactor.YAxis.Markers.Add(New AxisMarker("", 60))
sList2.AxisFactor.YAxis.Markers.Add(New AxisMarker("", 20))
sList2.AxisFactor.BackColor = Color.Pink
sList2.AxisFactor.YAxis.Markers(0).Line.LineColor = Color.Red
sList2.AxisFactor.YAxis.AnalysisItems(AnalysisCategory.Average).Visible = True
For i As Integer = 0 To 0
Dim sr As New. Series()
sr.SeriesColor = Color.YellowGreen
sr.Points.Width = 5
For x As Integer = 0 To 19
Dim item As New. SeriesItem()
item.Name = x.ToString()
item.YValue = r.[Next](30, 80)
sr.items.Add(item)
Next
sList2.SeriesCollection.Add(sr)
Next
Me.hHippoChart1.Direction = GraphAreaLocation.Vertical
sList.AxisFactor.YAxis.AxisMagin = 30
sList2.AxisFactor.YAxis.AxisMagin = 30
Me.hHippoChart1.SeriesListDictionary.Add(sList)
Me.hHippoChart1.SeriesListDictionary.Add(sList2)
Me.hHippoChart1.DrawChart()