series1.GetVertAxis.SetMinMax with aBothVertAxis does Left
series1.GetVertAxis.SetMinMax with aBothVertAxis does Left
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.
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>
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>