TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
-
Narcís
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
-
Contact:
Post
by Narcís » Tue Nov 27, 2007 11:33 am
Hi Ben,
The last
ValueFormat suggestion I made works for different data ranges for me here.
Regarding alignment, what do you exactly mean? Could you please send us some screenshots of what you'd like to see?
You may also be interested in labels's
Align property:
Code: Select all
axis.Labels.Align = AxisLabelAlign.Opposite;
-
BenW
- Advanced
- Posts: 119
- Joined: Wed Aug 10, 2005 4:00 am
Post
by BenW » Tue Nov 27, 2007 3:22 pm
Yes, you're correct, that format did work for different ranges - thanks!
With regard to alignment, I'm refering to the alignment of the decimal point for all axis labels.
Regards,
Ben.
-
Narcís
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
-
Contact:
Post
by Narcís » Tue Nov 27, 2007 5:33 pm
Hi Ben,
In that case you can set ValueFormat like this:
Code: Select all
axis.Labels.ValueFormat = "0.#########0";
For further custom numeric format strings information please read
this MSDN article.
Thanks in advance!
-
BenW
- Advanced
- Posts: 119
- Joined: Wed Aug 10, 2005 4:00 am
Post
by BenW » Tue Nov 27, 2007 7:35 pm
Thank you Narcís.
Ben.