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 09:26 AM
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 08:21 AM
ENEd NoepelJanuary 19, 2007 11:56 AM
>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: