SeriesList sList = new SeriesList();
sList.AxisFactor.XAxis.DateType = DateType.Time;
sList.AxisFactor.XAxis.DataType = AxisDataType.DateTime;
sList.AxisFactor.XAxis.SetAxisStep(DateTime.Now, DateTime.Now.AddHours(5), 60);
sList.AxisFactor.XAxis.DateTimeFormat = "HH:mm";
Random r = new Random();
for(int i = 0; i < 1; i++)
{
Series sr = new Series();
sr.Line.LineWidth = 3;
for(int x = 0; x < 10; x++)
{
SeriesItem item = new SeriesItem();
item.XDateTimeValue = DateTime.Now.AddHours(x);
item.Name = DateTime.Now.AddHours(x).ToString("HH:mm");
item.YValue = r.Next(900);
sr.items.Add(item);
}
sList.SeriesCollection.Add(sr);
}
this.hHippoChart1.SeriesListDictionary.Add(sList);
this.hHippoChart1.DrawChart();
Dim sList As New. SeriesList()
sList.AxisFactor.XAxis.DateType = DateType.Time
sList.AxisFactor.XAxis.DataType = AxisDataType.DateTime
sList.AxisFactor.XAxis.SetAxisStep(DateTime.Now, DateTime.Now.AddHours(5), 60)
sList.AxisFactor.XAxis.DateTimeFormat = "HH:mm"
Dim r As New. Random()
For i As Integer = 0 To 0
Dim sr As New. Series()
sr.Line.LineWidth = 3
For x As Integer = 0 To 9
Dim item As New. SeriesItem()
item.XDateTimeValue = DateTime.Now.AddHours(x)
item.Name = DateTime.Now.AddHours(x).ToString("HH:mm")
item.YValue = r.[Next](900)
sr.items.Add(item)
Next
sList.SeriesCollection.Add(sr)
Next
Me.hHippoChart1.SeriesListDictionary.Add(sList)
Me.hHippoChart1.DrawChart()