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

How to sort stacked column chart

3 Answers 351 Views
Charts
This is a migrated thread and some comments may be shown as answers.
Geroj
Top achievements
Rank 1
Geroj asked on 23 Jun 2016, 06:33 PM

 

1) I would like to know how to sort stacked column chart in descending order of the total value of the columns (sum of stacked value in a column) ?

2) How to have the legend color matches the color of the stacked columns ?

Here is  my dojo code

Any help would be appreciated.

 

3 Answers, 1 is accepted

Sort by
0
Accepted
Iliana Dyankova
Telerik team
answered on 27 Jun 2016, 07:59 AM
Hi Geroj,

Up to the questions
1). I am not quite sure if I understand correctly what the expected outcome is - could you please elaborate a bit more?
2). By design the legend shows the entire series colors. In order to achieve the expected result here you should manually set the colors in the dataBound event. For your convenience below is the modified dojo:  

http://dojo.telerik.com/@Iliana/OdiqeZ

Regards,
Iliana Nikolova
Telerik
 
Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
 
0
Geroj
Top achievements
Rank 1
answered on 27 Jun 2016, 03:36 PM

Hi Iliana Nikolova,

I'm trying to achieve something like that. sorting order .

the number represent the order in which I want my chart to be sorted. The column with the highest value should be at first,the one with the second highest value should be the second one and so on.

 

Regards, 

Geroj

0
Iliana Dyankova
Telerik team
answered on 29 Jun 2016, 08:33 AM
Hi Geroj,

Thank you for the details. I am afraid this scenario is not supported by Kendo UI Chart and there is no a suitable workaround which I could suggest. Please accept my apologies for any inconvenience this may cause.

Regards,
Iliana Nikolova
Telerik
 
Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
 
Tags
Charts
Asked by
Geroj
Top achievements
Rank 1
Answers by
Iliana Dyankova
Telerik team
Geroj
Top achievements
Rank 1
Share this question
or