SeriesList sList = new SeriesList();
sList.ChartType = ChartType.Line;
sList.AxisFactor.XAxis.DataType = AxisDataType.Number;
sList.AxisFactor.XAxis.SetAxisStep(0, 50, 10);
sList.GraphArea.Grid.GridDirection = GridDirection.None;
AxisArea mk = new AxisArea("", 5, 22);
mk.TextFormat.LineAlignment = StringAlignment.Far;
mk.TextFormat.Alignment = StringAlignment.Near;
mk.BackColor = Color.FromArgb(20, Color.Violet);
mk.BringToFront = true;
mk.LegendVisible = false;
mk.Label.Text = "※x축 영역 마커를 통해서 데이터 영역을 표시하여 데이터의 중요한 부분을 표시할 수 있습니다. ";
sList.AxisFactor.XAxis.Areas.Add(mk);
Random r = new Random();
for(int i = 0; i < 1; i++)
{
Series sr = new Series();
sr.Points.Width = 10;
for(int x = 0; x < 50; x++)
{
SeriesItem item = new SeriesItem();
item.Name = x.ToString();
item.YValue = r.Next(20, 70);
item.XValue = x;
sr.items.Add(item);
}
sList.SeriesCollection.Add(sr);
}
this.hHippoChart1.DesignType = ChartDesignType.Designable;
this.hHippoChart1.SeriesListDictionary.Add(sList);
this.hHippoChart1.DrawChart();
Dim sList As New. SeriesList()
sList.ChartType = ChartType.Line
sList.AxisFactor.XAxis.DataType = AxisDataType.Number
sList.AxisFactor.XAxis.SetAxisStep(0, 50, 10)
sList.GraphArea.Grid.GridDirection = GridDirection.None
Dim mk As New. AxisArea("", 5, 22)
mk.TextFormat.LineAlignment = StringAlignment.Far
mk.TextFormat.Alignment = StringAlignment.Near
mk.BackColor = Color.FromArgb(20, Color.Violet)
mk.BringToFront = True
mk.LegendVisible = False
mk.Label.Text = "※x축 영역 마커를 통해서 데이터 영역을 표시하여 데이터의 중요한 부분을 표시할 수 있습니다. "
sList.AxisFactor.XAxis.Areas.Add(mk)
Dim r As New. Random()
For i As Integer = 0 To 0
Dim sr As New. Series()
sr.Points.Width = 10
For x As Integer = 0 To 49
Dim item As New. SeriesItem()
item.Name = x.ToString()
item.YValue = r.[Next](20, 70)
item.XValue = x
sr.items.Add(item)
Next
sList.SeriesCollection.Add(sr)
Next
Me.hHippoChart1.DesignType = ChartDesignType.Designable
Me.hHippoChart1.SeriesListDictionary.Add(sList)
Me.hHippoChart1.DrawChart()