Getting visible value range after zooming problem
Posted: Tue Jan 20, 2009 6:28 pm
I am trying to get the visible value range after zooming on a TLineSeries. This is my current code:
Chart1.Draw;
Chart1.Title.Text.Clear;
Chart1.Title.Text.Add(IntToStr(Series1.FirstDisplayedIndex));
Chart1.Title.Text.Add(IntToStr(Series1.FirstDisplayedIndex + Series1.VisibleCount-1));
I get the correct answer for start value (Series1.FirstDisplayedIndex), but the end value is not correct (Series1.FirstDisplayedIndex + Series1.VisibleCount-1). I am using TeeChart Pro v8.02.10861 Win32.
Any suggestions?
Chart1.Draw;
Chart1.Title.Text.Clear;
Chart1.Title.Text.Add(IntToStr(Series1.FirstDisplayedIndex));
Chart1.Title.Text.Add(IntToStr(Series1.FirstDisplayedIndex + Series1.VisibleCount-1));
I get the correct answer for start value (Series1.FirstDisplayedIndex), but the end value is not correct (Series1.FirstDisplayedIndex + Series1.VisibleCount-1). I am using TeeChart Pro v8.02.10861 Win32.
Any suggestions?