Axis labels: valueformat ?

TeeChart for ActiveX, COM and ASP
Post Reply
Kabal
Newbie
Newbie
Posts: 19
Joined: Mon Mar 13, 2006 12:00 am

Axis labels: valueformat ?

Post by Kabal » Fri Mar 31, 2006 11:51 am

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.

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Fri Mar 31, 2006 2:29 pm

Hi Rustam,

You can use something like this:

Code: Select all

    TChart1.Axis.Left.Labels.ValueFormat = "#,#######0.00000000"
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Kabal
Newbie
Newbie
Posts: 19
Joined: Mon Mar 13, 2006 12:00 am

Post by Kabal » Fri Mar 31, 2006 3:01 pm

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.

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Fri Mar 31, 2006 3:06 pm

Hi Rustam,

Then you will need to use OnGetAxisLabel event and manually parse labels text.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Kabal
Newbie
Newbie
Posts: 19
Joined: Mon Mar 13, 2006 12:00 am

Post by Kabal » Fri Mar 31, 2006 3:18 pm

It's good. Thanks :)

Post Reply