Page 1 of 1

series1.GetVertAxis.SetMinMax with aBothVertAxis does Left

Posted: Mon Nov 17, 2003 3:15 pm
by 9333098
Peforming series1.GetVertAxis.SetMinMax with axis defined as aBothVertAxis only results in the left axis changing its vertical scale. The right scale remains what is had been.

Posted: Mon Nov 17, 2003 5:15 pm
by Marjan
Hi.

True, I get the same results even with the latest TeeChart v7 beta sources. I guess SetMinMax was designed as TChartAxis method and should work only with single axis. In your case the workaround is to manually set right axis scale. I'd place the code in the TChart.OnZoom event. Here is pseudo-code I'd use:
<pre>
if Series1.GetVertAxis = aBothVertAxis then
With Chart1.Axes.Left do
Chart1.Axes.Right.SetMinMax(Minumum,Maximum);
</pre>