Page 1 of 1

Axis labels: valueformat ?

Posted: Fri Mar 31, 2006 11:51 am
by 9530613
Hello Support Team,

My data is changing in range from 1e-7 to 1e-4. I would want that values on an axis were displayed without a sign exponent. For example - "1,123" and not "1,123e-4". How to make it ?

Now it is displaying as "1,123e-4" or "0,000123".

Best regards, Rustam.

Posted: Fri Mar 31, 2006 2:29 pm
by narcis
Hi Rustam,

You can use something like this:

Code: Select all

    TChart1.Axis.Left.Labels.ValueFormat = "#,#######0.00000000"

Posted: Fri Mar 31, 2006 3:01 pm
by 9530613
narcis wrote:Hi Rustam,

You can use something like this:

Code: Select all

    TChart1.Axis.Left.Labels.ValueFormat = "#,#######0.00000000"
It not that. because it like "0,000123", I would want that the number 1,23e-5 it was displayed as "1,23", without exponent.

It would be necessary so as to display value on an axis in various units of measurements.

Posted: Fri Mar 31, 2006 3:06 pm
by narcis
Hi Rustam,

Then you will need to use OnGetAxisLabel event and manually parse labels text.

Posted: Fri Mar 31, 2006 3:18 pm
by 9530613
It's good. Thanks :)