Kendo Chart with Grouped Data and some missing CategoryAxis Labels...

5 posts, 1 answers
  1. Robin
    Robin avatar
    46 posts
    Member since:
    Jul 2012

    Posted 05 Nov 2013 Link to this post

    In my kendo chart ( http://jsbin.com/eWIniqi/1/edit ) it renders properly with correct grouping etc. unless the data is missing a Code: "No" for a month.

    If you remove one of the Code: "No" for a month, the categoryAxis label disappears ( http://jsbin.com/aQaXorE/2/edit ).  I can remove a yes or not specified, and the categoryField shows up fine ( http://jsbin.com/aQaXorE/3/edit ).

    My data is being pulled from some evaluations that are done and may not have all three fields represented (Ideally we would only have Code: "yes" responses).
    Is there some way to make sure the categoryAxis field label is shown, or perhaps there is a better way to build this chart ?

    Thanks

    Robin
  2. Answer
    Iliana Nikolova
    Admin
    Iliana Nikolova avatar
    2622 posts

    Posted 07 Nov 2013 Link to this post

    Hello Robin,

    The observed behaviour is expected - by design the categorical charts require a matching set of data points (the value can be null but the records needs to be presented in the data). If there is a different number of data points you should use the series.categoryField option. For your convenience I updated the jsBin example with removed Code: "No".

    Regards,
    Iliana Nikolova
    Telerik
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. Robin
    Robin avatar
    46 posts
    Member since:
    Jul 2012

    Posted 07 Nov 2013 Link to this post

    Gotcha.

    Thank you for the response.
  4. Doug
    Doug avatar
    8 posts
    Member since:
    May 2013

    Posted 16 Jan in reply to Iliana Nikolova Link to this post

    This is really not a great design.  The grouping should auto zero values that are missing.  Not only does it not display properly, it complete changes the sorting of the data.  I would like to add this a feature request.  This would allow charts to move beyond just the most basic implementations.
  5. Stefan
    Admin
    Stefan avatar
    1887 posts

    Posted 18 Jan Link to this post

    Hello, Doug,

    Thank you for the feedback.

    I can suggest submitting this feature request in our feedback portal, so other people from the Kendo UI community can vote for it as well:

    http://kendoui-feedback.telerik.com/forums/127393-kendo-ui-feedback?category_id=46450

    I can also suggest describing the different results which are expected as we made the series.categoryField for this scenario, but I can assume that you have other improvements to suggest as well.

    Thank you in advance.

    Regards,
    Stefan
    Progress Telerik
    Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top