When I add a custom point to a series of charts, sometimes the automatic chart Y axis scaling is such that the custom point is not on the chart. Here is an example of my code.
myCharts.PrimaryYAxis.RangeType = ChartAxisRangeType.Auto
Dim Series1 As ChartSeries
Dim CusPoint As New ChartCustomPoint()
series1 = ... (fill Series1 up with data)
cusPoint = ... (put data into cusPoint)
The Y range of the data in "Series1" is from 1000 - 1220. The Y value of CusPoint is 1250. Series1 plots fine. However, because the chart is automatically scaled from about 900 to 1230, cusPoint never shows up.
Is there a problem with the automatic scaling algorithm? Do I need to do things in a different order?
DJDavis Jebaraj Syncfusion Team February 25, 2004 02:26 PM UTC
The ChartControl does not compute the X axis or Y axis range taking into account the custom points.
You should set the range of the Y axis to be a custom value (when the custom point is not within the range of the series points):
Me.ChartControl1.PrimaryYAxis.RangeType = ChartAxisRangeType.Set
Me.ChartControl1.PrimaryYAxis.Range.Min = 1000
Me.ChartControl1.PrimaryYAxis.Range.Max = 1350
Please see the sample linked to below:
BKBill KorchinskiFebruary 27, 2004 01:21 PM UTC
ENEd NoepelJanuary 19, 2007 04:56 PM UTC
>The ChartControl does not compute the X axis or Y axis range taking into account the custom points.
Is this also an issue for non-custom points when the series is updated in real time? I have: