How to set gauge series axis label format?

TeeChart for ActiveX, COM and ASP
Post Reply
Tero
Newbie
Newbie
Posts: 7
Joined: Wed Mar 30, 2016 12:00 am
Contact:

How to set gauge series axis label format?

Post by Tero » Thu Nov 10, 2016 8:47 am

The following line seems to do nothing:

gauge.GetAxis().GetLabels().SetValueFormat(_T("0"));

Used TeeChart Editor to check label format and value format remains unchanged...

Latest version VS2012 compiler.

Yeray
Site Admin
Site Admin
Posts: 9514
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: How to set gauge series axis label format?

Post by Yeray » Fri Nov 11, 2016 9:43 am

Hello,

I could reproduce the problem so I've added it to the public tracker:
http://bugs.teechart.net/show_bug.cgi?id=1682
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Yeray
Site Admin
Site Admin
Posts: 9514
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: How to set gauge series axis label format?

Post by Yeray » Tue Jan 10, 2017 3:01 pm

Hello,

This is just to let you know the ticket #1682 has been closed as "Not a bug". You can access ValueFormat directly in the series:

Code: Select all

TChart1.Series(0).ValueFormat = "0.00"
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply