Sitefinity
Top achievements
Rank 1
Sitefinity
asked on 18 Jun 2012, 03:01 PM
JS Fiddle example: http://jsfiddle.net/codyinman/JKV49/37/
There are 2 axis values for the number "2" on the Y-Axis. Is there something in the code causing this or this a bug in Kendo UI?
There are 2 axis values for the number "2" on the Y-Axis. Is there something in the code causing this or this a bug in Kendo UI?
5 Answers, 1 is accepted
0
Hello Juan,
This issue in your example is due to the following code snippet:
By design, this format is used for Number with no decimals. For more detailed information about the different formats you could check this link. Also, I believe you may find this article very useful.
For convenience, I updated your jsFiddle example.
the Telerik team
This issue in your example is due to the following code snippet:
valueAxis: {
...
labels: { format:
'{0:N0}'
}
}
By design, this format is used for Number with no decimals. For more detailed information about the different formats you could check this link. Also, I believe you may find this article very useful.
For convenience, I updated your jsFiddle example.
Greetings,
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Sitefinity
Top achievements
Rank 1
answered on 19 Jun 2012, 05:57 PM
Exactly - I do not want to display decimal places on the Y Axis values. Is this not possible?
0
Sitefinity
Top achievements
Rank 1
answered on 19 Jun 2012, 06:05 PM
I see what is going on - can the chart not display only whole numbers? Does it have to display .5 for each whole number?
0
Hello Juan,
Fore more detailed information about the Kendo UI Chart configuration options, please take a closer look at our online documentation.
the Telerik team
You could control the value types that are displayed via the majorUnit of the value axis - this option sets the interval between major divisions. For convenience, I updated the jsFiddle example.
Fore more detailed information about the Kendo UI Chart configuration options, please take a closer look at our online documentation.
Kind regards,
Iliana Nikolovathe Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Sitefinity
Top achievements
Rank 1
answered on 20 Jun 2012, 01:57 PM
Great! Thank you. If max is less than 20 I apply the majorUnit and it works perfectly.
On a side note, I created another forum post about your online documentation. It is very hard to find these things - I am all about finding things on my own but in order to try and even get close to finding what I need in your online documentation I always have to use CTRL+F in my browser.
Forum Post
Thanks again!
On a side note, I created another forum post about your online documentation. It is very hard to find these things - I am all about finding things on my own but in order to try and even get close to finding what I need in your online documentation I always have to use CTRL+F in my browser.
Forum Post
Thanks again!