SeriesList sList = new SeriesList();
sList.ChartType = ChartType.Line;
Random r = new Random();
for (int i = 0; i < 4; i++)
{
Series sr = new Series();
sr.Points.Width = 6;
sr.Points.PointType = PointType.FillRectangle;
for (int x = 0; x < 5; x++)
{
SeriesItem item = new SeriesItem();
item.Name = "item" + x.ToString();
item.YValue = r.Next(50);
if (i == 3 && x == 2)
{
item.Balloon = new Balloon();
item.Balloon.Label.Text = "Here!";
}
sr.items.Add(item);
}
sList.SeriesCollection.Add(sr);
}
this.hHippoChart1.LegendBox.Visible = false;
this.hHippoChart1.Titles.Label.ForeColor = Color.SteelBlue;
this.hHippoChart1.DesignType = ChartDesignType.Simple;
this.hHippoChart1.SeriesListDictionary.Add(sList);
this.hHippoChart1.DrawChart();
|