This is a migrated thread and some comments may be shown as answers.

setLabelFormat()

3 Answers 396 Views
Chart
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Richard
Top achievements
Rank 1
Richard asked on 12 May 2015, 03:06 PM

What is the format for setLabelFormat("") ?

 

I tried setLabelFormat("0") and my values were replaced with the literal "0".

 

I tried getLabelFormat() to see what the default was and it returned an empty string.

 

I'm guessing "#" ? (or #.##, etc.?) This is stuff that should be in the documentation...

 

Rich

3 Answers, 1 is accepted

Sort by
0
Richard
Top achievements
Rank 1
answered on 12 May 2015, 03:10 PM

Hi --

 So "#" didn't work either..

 

Rich

 

0
Nicholas
Top achievements
Rank 1
answered on 12 May 2015, 09:25 PM

Okay, it appears that the "format" of this string format value is the same as the Java Formatter class, more info about which can be found here:

https://docs.oracle.com/javase/tutorial/java/data/numberformat.html

 

Again, any kind of note in the documentation as to this would have been super helpful rather than struggling to find this info. This is why I"m posting it here so others don't have the same frustration as I have had.

 

Rich

0
Victor
Telerik team
answered on 14 May 2015, 10:34 AM
Hi Richard,

Thanks for writing.
We never thought about adding this info in the docs because the name labelFormat implies a format string which is a very common API in Java.

We will update the online docs just in case.

Regards,
Victor
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Chart
Asked by
Richard
Top achievements
Rank 1
Answers by
Richard
Top achievements
Rank 1
Nicholas
Top achievements
Rank 1
Victor
Telerik team
Share this question
or