BUG - Duplicate Axis Points - Column Chart

6 posts, 0 answers
  1. Juan Sola
    Juan Sola avatar
    26 posts
    Member since:
    Jan 2007

    Posted 18 Jun 2012 Link to this post

    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?
  2. Iliana Nikolova
    Admin
    Iliana Nikolova avatar
    2622 posts

    Posted 19 Jun 2012 Link to this post

    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!
  3. Juan Sola
    Juan Sola avatar
    26 posts
    Member since:
    Jan 2007

    Posted 19 Jun 2012 Link to this post

    Exactly - I do not want to display decimal places on the Y Axis values. Is this not possible?
  4. Juan Sola
    Juan Sola avatar
    26 posts
    Member since:
    Jan 2007

    Posted 19 Jun 2012 Link to this post

    I see what is going on - can the chart not display only whole numbers? Does it have to display .5 for each whole number?
  5. Iliana Nikolova
    Admin
    Iliana Nikolova avatar
    2622 posts

    Posted 20 Jun 2012 Link to this post

    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!
  6. Juan Sola
    Juan Sola avatar
    26 posts
    Member since:
    Jan 2007

    Posted 20 Jun 2012 Link to this post

    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!
Back to Top