Axis maximum when not visible
Posted: Mon Apr 11, 2005 4:59 pm
Hi,
I have a problem determining an Axis maximum when the chart is not visible. In following code Series1 is a horizontal box plot but I doubt it matters what the series is:
self.Series1.AddXY(10, 10);
self.Series1.AddXY(12, 10);
self.Chart1.Update;
showMessage( FloatToStr(self.Chart1.BottomAxis.maximum) );
Chart1 is on a tab sheet. If that tab sheet is selected when this code executes, it returns 12 - as expected. However, if this code is executed when a different tab sheet is selected - i.e. the chart isn't visible, it returns 0. I need this value so I can set another chart's axis to the same maximum value. Sample project available if u need it.
Also, did anyone note the Histogram bin width error from my thread "Histogram Bin Width"? We had to drop histograms and replace them with area charts. The histogram is too buggy.
Regards,
Rick
I have a problem determining an Axis maximum when the chart is not visible. In following code Series1 is a horizontal box plot but I doubt it matters what the series is:
self.Series1.AddXY(10, 10);
self.Series1.AddXY(12, 10);
self.Chart1.Update;
showMessage( FloatToStr(self.Chart1.BottomAxis.maximum) );
Chart1 is on a tab sheet. If that tab sheet is selected when this code executes, it returns 12 - as expected. However, if this code is executed when a different tab sheet is selected - i.e. the chart isn't visible, it returns 0. I need this value so I can set another chart's axis to the same maximum value. Sample project available if u need it.
Also, did anyone note the Histogram bin width error from my thread "Histogram Bin Width"? We had to drop histograms and replace them with area charts. The histogram is too buggy.
Regards,
Rick