SeriesList sList = new SeriesList();
sList.ChartType = ChartType.Line;
sList.AxisFactor.XAxis.DataType = AxisDataType.DateTime;
AxisMarker mk = new AxisMarker("하한선", DateTime.Now.AddDays(43));
AxisMarker mk2 = new AxisMarker("상한선", DateTime.Now.AddDays(77));
mk2.Line.LineColor = Color.Red;
mk2.Label.ForeColor = Color.Red;
sList.AxisFactor.XAxis.Markers.Add(mk);
sList.AxisFactor.XAxis.Markers.Add(mk2);
Random r = new Random();
for(int i = 0; i < 1; i++)
{
Series sr = new Series();
for(int x = 0; x < 7; x++)
{
SeriesItem item = new SeriesItem();
item.Name = x.ToString();
item.YValue = r.Next(99);
item.XDateTimeValue = DateTime.Now.AddDays(x * 10 + 20);
sr.items.Add(item);
}
sList.SeriesCollection.Add(sr);
}
this.hHippoChart1.SeriesListDictionary.Add(sList);
this.hHippoChart1.DrawChart();
Dim sList As New. SeriesList()
sList.ChartType = ChartType.Line
sList.AxisFactor.XAxis.DataType = AxisDataType.DateTime
Dim mk As New. AxisMarker("하한선", DateTime.Now.AddDays(43))
Dim mk2 As New. AxisMarker("상한선", DateTime.Now.AddDays(77))
mk2.Line.LineColor = Color.Red
mk2.Label.ForeColor = Color.Red
sList.AxisFactor.XAxis.Markers.Add(mk)
sList.AxisFactor.XAxis.Markers.Add(mk2)
Dim r As New. Random()
For i As Integer = 0 To 0
Dim sr As New. Series()
For x As Integer = 0 To 6
Dim item As New. SeriesItem()
item.Name = x.ToString()
item.YValue = r.[Next](99)
item.XDateTimeValue = DateTime.Now.AddDays(x * 10 + 20)
sr.items.Add(item)
Next
sList.SeriesCollection.Add(sr)
Next
Me.hHippoChart1.SeriesListDictionary.Add(sList)
Me.hHippoChart1.DrawChart()