Y-values rounded to 1 decimal

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Wicket
Newbie
Newbie
Posts: 20
Joined: Mon Jan 15, 2007 12:00 am

Y-values rounded to 1 decimal

Post by Wicket » Wed Jun 20, 2007 1:08 pm

Is there a way to tell the graph to always round all Y-values to 1 decimal (i.e. 12,47 will be 12,5). I know it isn't too hard doing it 'manually' before adding the values, but if the functionality is already there in the graph, I could as well use it.

Btw, I'm using the FastLine series.

regards
Andreas

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

Post by Narcís » Wed Jun 20, 2007 1:29 pm

Hi Andreas,

Yes, you can use series' ValueFormat property. This can be either configured at run-time or at design-time using the chart editor. For more information on Customer Numeric Format Strings you can read this article.

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
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply