SeriesList sList = new SeriesList();
sList.ChartType = ChartType.Line;
sList.AxisFactor.YAxis.TitleLabel.Text = "y axis title";
sList.AxisFactor.XAxis.TitleLabel.Text = "x axis title";
Random r = new Random();
for(int i = 0; i < 3; i++)
{
Series sr = new Series();
sr.Name = "Serie" + i.ToString();
sr.Line.LineWidth = 2;
sr.Points.Width = 5;
sr.FigureTextLocation = FigureTextLocation.Bottom;
for(int x = 0; x < 6; x++)
{
SeriesItem item = new SeriesItem();
item.Name = "item" + x.ToString();
item.YValue = -22 + r.Next(50);
item.IsShowFigureText = true;
sr.items.Add(item);
}
sList.SeriesCollection.Add(sr);
}
this.hHippoChart1.DesignType = ChartDesignType.Simple;
this.hHippoChart1.PaletteType = PaletteType.Sky;
this.hHippoChart1.SeriesListDictionary.Add(sList);
this.hHippoChart1.DrawChart();
Dim sList As New. SeriesList()
sList.ChartType = ChartType.Line
sList.AxisFactor.YAxis.TitleLabel.Text = "y axis title"
sList.AxisFactor.XAxis.TitleLabel.Text = "x axis title"
Dim r As New. Random()
For i As Integer = 0 To 2
Dim sr As New. Series()
sr.Name = "Serie" & i.ToString()
sr.Line.LineWidth = 2
sr.Points.Width = 5
sr.FigureTextLocation = FigureTextLocation.Bottom
For x As Integer = 0 To 5
Dim item As New. SeriesItem()
item.Name = "item" & x.ToString()
item.YValue = -22 + r.[Next](50)
item.IsShowFigureText = True
sr.items.Add(item)
Next
sList.SeriesCollection.Add(sr)
Next