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

Stacked bar chart, data displaying in wrong category, first series

2 Answers 105 Views
Charts
This is a migrated thread and some comments may be shown as answers.
Chris
Top achievements
Rank 1
Chris asked on 16 Mar 2017, 07:00 PM

In the attached files, categories are the Group field, and bars are stacked according to the Response field.

Values for the 2-Neutral and 3-Agree groups display correctly in the right category.  Values for the first group of 1-Disagree are in the wrong order.  They should be 12.5, 16.2, 19.8, 24.8 and 24.7.  The second value shows at the bottom of the chart in the fifth 5-20+ years category, instead of in the second 2 to less than 5 years category.

Can you help me resolve this problem?

Thanks very much for your help.

Chris

2 Answers, 1 is accepted

Sort by
0
Accepted
Iliana Dyankova
Telerik team
answered on 20 Mar 2017, 07:16 AM
Hi Chris,

In order to achieve the expected result you should sort the dataSource by the "Group" field. Take a look at the updated example.

Regards,
Iliana Nikolova
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Chris
Top achievements
Rank 1
answered on 20 Mar 2017, 03:28 PM

Hi, Iliana,

Thank you very much for this answer.  It works like a charm!  This is part of a much larger solution and has been driving me crazy, so I really appreciate your help!

Chris

Tags
Charts
Asked by
Chris
Top achievements
Rank 1
Answers by
Iliana Dyankova
Telerik team
Chris
Top achievements
Rank 1
Share this question
or