LineSeries: getting correct increment automatically changed

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
NoName
Newbie
Newbie
Posts: 34
Joined: Fri Nov 15, 2002 12:00 am
Location: Italy

LineSeries: getting correct increment automatically changed

Post by NoName » Thu Oct 06, 2005 8:19 am

Hello,

I have a TFastLineSeries, the bottom axis is used to display dates.
I set the BottomAxis.Increment property = 1.

If there are too many values to display, the bottom axis shows dates with a different increment, automatically changed, in order to best fit date "captions" on the axis.

This is a great feature, and I really like it!

At run-time, I want to know what is the current increment of the bottom axis, but I don't know how to get it.
In fact, if I read the BottomAxis.Increment property, it is always = 1.

Is there any way to get the Increment automatically changed?

Thank you.

Pep
Site Admin
Site Admin
Posts: 3295
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Mon Oct 10, 2005 12:09 pm

Hi,

yes, you can get it using :
incr := Chart1.Axes.Bottom.CalcIncrement;

NoName
Newbie
Newbie
Posts: 34
Joined: Fri Nov 15, 2002 12:00 am
Location: Italy

Post by NoName » Wed Oct 19, 2005 7:18 am

Thank you!

It's definitively amazing!

Post Reply