SeriesList sList = new SeriesList();
sList.ChartType = ChartType.Contour;
sList.AxisFactor.XAxis.DataType = AxisDataType.Number;
// 칼라맵을 위한 추가 축
Axis addAx = new Axis(AxisType.Ytype);
addAx.Decimalpoint = 0;
sList.AxisFactor.AxisItems.Add(addAx);
sList.AxisFactor.AxisItems[0].SetAxisStep(-16, 16, 2);
sList.AxisFactor.AxisItems[0].ColorMaps.MaxColorValue = 16;
sList.AxisFactor.AxisItems[0].ColorMaps.MinColorValue = -16;
sList.AxisFactor.AxisItems[0].ColorMaps.DecimalPoint = 2;
Series sr = new Series();
sr.Points.Width = 6;
sr.Transparency = 55;
for(double x = -10; x < 10; x += 0.1)
{
for(double y = -10; y < 10; y += 0.1)
{
SeriesItem item = new SeriesItem();
item.XValue = x;
item.YValue = y;
item.ZValue = x * Math.Sin(y) + y * Math.Sin(x);
sr.items.Add(item);
}
}
sList.SeriesCollection.Add(sr);
this.hHippoChart2.Titles.Label.Text = "Hippochart Contour chart ";
this.hHippoChart2.LegendBox.Visible = false;
this.hHippoChart2.SeriesListDictionary.Add(sList);
this.hHippoChart2.DrawChart();
Dim sList As New. SeriesList()
sList.ChartType = ChartType.Contour
sList.AxisFactor.XAxis.DataType = AxisDataType.Number
` 칼라맵을 위한 추가 축
Dim addAx As New. Axis(AxisType.Ytype)
addAx.Decimalpoint = 0
sList.AxisFactor.AxisItems.Add(addAx)
sList.AxisFactor.AxisItems(0).SetAxisStep(-16, 16, 2)
sList.AxisFactor.AxisItems(0).ColorMaps.MaxColorValue = 16
sList.AxisFactor.AxisItems(0).ColorMaps.MinColorValue = -16
sList.AxisFactor.AxisItems(0).ColorMaps.DecimalPoint = 2
Dim sr As New. Series()
sr.Points.Width = 6
sr.Transparency = 55
Dim x As Double = -10
While x < 10
Dim y As Double = -10
While y < 10
Dim item As New. SeriesItem()
item.XValue = x
item.YValue = y
item.ZValue = x * Math.Sin(y) + y * Math.Sin(x)
sr.items.Add(item)
y += 0.1
End While
x += 0.1
End While
sList.SeriesCollection.Add(sr)
Me.hHippoChart2.Titles.Label.Text = "Hippochart Contour chart "
Me.hHippoChart2.LegendBox.Visible = False
Me.hHippoChart2.SeriesListDictionary.Add(sList)
Me.hHippoChart2.DrawChart()