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

BUG - Duplicate Axis Points - Column Chart

5 Answers 502 Views
Charts
This is a migrated thread and some comments may be shown as answers.
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?

5 Answers, 1 is accepted

Sort by
0
Iliana Dyankova
Telerik team
answered on 19 Jun 2012, 02:04 PM
Hello Juan,

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,

Iliana Nikolova
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
Iliana Dyankova
Telerik team
answered on 20 Jun 2012, 12:58 PM
Hello Juan,

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 Nikolova
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 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!
Tags
Charts
Asked by
Sitefinity
Top achievements
Rank 1
Answers by
Iliana Dyankova
Telerik team
Sitefinity
Top achievements
Rank 1
Share this question
or