SeriesList sList = new SeriesList();
sList.ChartType = ChartType.Line;
sList.AxisFactor.XAxis.DataType = AxisDataType.DateTime;
sList.AxisFactor.XAxis.DateType = DateType.Time;
sList.AxisFactor.XAxis.DateTimeFormat = "HH:mm:ss";
AxisMarker mk = new AxisMarker("하한선", DateTime.Now.AddMinutes(43));
AxisMarker mk2 = new AxisMarker("상한선", DateTime.Now.AddMinutes(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 < 10; x++)
{
SeriesItem item = new SeriesItem();
item.YValue = r.Next(99);
item.XDateTimeValue = DateTime.Now.AddMinutes(x * 10 + 30);
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
sList.AxisFactor.XAxis.DateType = DateType.Time
sList.AxisFactor.XAxis.DateTimeFormat = "HH:mm:ss"
Dim mk As New. AxisMarker("하한선", DateTime.Now.AddMinutes(43))
Dim mk2 As New. AxisMarker("상한선", DateTime.Now.AddMinutes(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 9
Dim item As New. SeriesItem()
item.YValue = r.[Next](99)
item.XDateTimeValue = DateTime.Now.AddMinutes(x * 10 + 30)
sr.items.Add(item)
Next
sList.SeriesCollection.Add(sr)
Next
Me.hHippoChart1.SeriesListDictionary.Add(sList)
Me.hHippoChart1.DrawChart()