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

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

4 Answers 93 Views
Charts
This is a migrated thread and some comments may be shown as answers.
Robin
Top achievements
Rank 1
Robin asked on 05 Nov 2013, 05:02 PM
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

4 Answers, 1 is accepted

Sort by
0
Accepted
Iliana Nikolova
Telerik team
answered on 07 Nov 2013, 08:20 AM
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!
0
Robin
Top achievements
Rank 1
answered on 07 Nov 2013, 12:48 PM
Gotcha.

Thank you for the response.
0
Doug
Top achievements
Rank 2
answered on 17 Jan 2018, 12:09 AM
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.
0
Stefan
Telerik team
answered on 18 Jan 2018, 07:32 AM
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.
Tags
Charts
Asked by
Robin
Top achievements
Rank 1
Answers by
Iliana Nikolova
Telerik team
Robin
Top achievements
Rank 1
Doug
Top achievements
Rank 2
Stefan
Telerik team
Share this question
or