setting the format of the left/right axis labels
setting the format of the left/right axis labels
i have inherited some code that uses a "grouping" form, which has a TChart as one of it's components. i would like to set the format of the left and right axis labels, but everything i've tried so far has failed. i've set the Left and Right Axis AxisValuesFormat settings to "#,##0.###" (in the form designer for the grouping), but the values are always displayed as integer (eg, 165333.333 is displayed as 165333). i've stepped thru the debugger and the format for the chart shows "#,##0.###" (as expected), and the value is a double, as expected. it's passed to series->AddXY correctly.
is there some "master" setting that says to display values as integer?
is there some "master" setting that says to display values as integer?
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi rperkins,
No, using AxisValuesFormat should work fine. Could you please send us a simple example project we can run "as-is" to reproduce the problem here?
You can either post your files at news://www.steema.net/steema.public.attachments newsgroup or at our upload page.
Thanks in advance.
No, using AxisValuesFormat should work fine. Could you please send us a simple example project we can run "as-is" to reproduce the problem here?
You can either post your files at news://www.steema.net/steema.public.attachments newsgroup or at our upload page.
Thanks in advance.
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
i had figured that it was AxisValuesFormat, but, wanted to check. will have to do some more debugging.
this is part of a large application, with some 3rd party components, so, simply posting the code, i think, won't allow you to debug it.
i'm going to create a separate control based on this "grouping" and see what happens. if it still doesn't work, then, it might be in a smaller form that would allow posting.
thanks.
this is part of a large application, with some 3rd party components, so, simply posting the code, i think, won't allow you to debug it.
i'm going to create a separate control based on this "grouping" and see what happens. if it still doesn't work, then, it might be in a smaller form that would allow posting.
thanks.
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi rperkins,
I'm glad to hear you could solve the problem. Setting Increment to zero means setting it to automatic.
I'm glad to hear you could solve the problem. Setting Increment to zero means setting it to automatic.
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Monkey,
Have you tried setting AxisValuesFormat to something similar as what rperkins suggested?
Thanks in advance.
Have you tried setting AxisValuesFormat to something similar as what rperkins suggested?
Thanks in advance.
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Monkey,
I'm glad to hear that.I've just tried setting AxisValuesFormat to 0.000 and it appears to work fine now.
There's no minimum axis increment.What is the minimum size axis increment?
No, axis can display as many labels as desired provided they don't overlap.Is there a maximum number of increments that an axis may display?
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
Thought this might be the case. My increment is set to 0.001 but the chart only displays labels (and grid lines) in increments of 0.002. This is not a problem however.narcis wrote:No, axis can display as many labels as desired provided they don't overlap.
Thanks again for your valued assistance
Monkey.