SeriesList sList = new SeriesList();
sList.ChartType = ChartType.ColorMap;
// 칼라맵을 위한 추가 축
Axis addAx = new Axis(AxisType.Ytype);
addAx.Decimalpoint = 0;
sList.AxisFactor.AxisItems.Add(addAx);
sList.AxisFactor.AxisItems[0].SetAxisStep(100, 200, 5);
sList.AxisFactor.AxisItems[0].ColorMaps.MaxColorValue = 200;
sList.AxisFactor.AxisItems[0].ColorMaps.MinColorValue = 100;
Random r = new Random();
for(int i = 0; i < 50; i++)
{
Series sr = new Series();
Series sr2 = new Series();
sr2.AxisIndex = 1;
sr2.Visible = false; // 추가된 축의 그래프는 보일 필요가 없다.
for(int x = 0; x < 50; x++)
{
SeriesItem item = new SeriesItem();
item.Name = x.ToString();
item.YValue = i + 1;
item.YStartValue = i;
item.ZValue = r.Next(157, 200);
sr.items.Add(item);
// 추가된 축은 실제 색상 값이 들어가야됨
SeriesItem item2 = new SeriesItem();
item2.Name = x.ToString();
item2.YValue = item.ZValue;
sr2.items.Add(item2);
}
sList.SeriesCollection.Add(sr);
}
this.hHippoChart1.SeriesListDictionary.Add(sList);
this.hHippoChart1.DrawChart();
Dim sList As New. SeriesList()
sList.ChartType = ChartType.ColorMap
` 칼라맵을 위한 추가 축
Dim addAx As New. Axis(AxisType.Ytype)
addAx.Decimalpoint = 0
sList.AxisFactor.AxisItems.Add(addAx)
sList.AxisFactor.AxisItems(0).SetAxisStep(100, 200, 5)
sList.AxisFactor.AxisItems(0).ColorMaps.MaxColorValue = 200
sList.AxisFactor.AxisItems(0).ColorMaps.MinColorValue = 100
Dim r As New. Random()
For i As Integer = 0 To 49
Dim sr As New. Series()
Dim sr2 As New. Series()
sr2.AxisIndex = 1
sr2.Visible = False
` 추가된 축의 그래프는 보일 필요가 없다.
For x As Integer = 0 To 49
Dim item As New. SeriesItem()
item.Name = x.ToString()
item.YValue = i + 1
item.YStartValue = i
item.ZValue = r.[Next](157, 200)
sr.items.Add(item)
` 추가된 축은 실제 색상 값이 들어가야됨
Dim item2 As New. SeriesItem()
item2.Name = x.ToString()
item2.YValue = item.ZValue
sr2.items.Add(item2)
Next
sList.SeriesCollection.Add(sr)
Next
Me.hHippoChart1.SeriesListDictionary.Add(sList)
Me.hHippoChart1.DrawChart()