-1

I want to sort the bar series on each category of my kendo chart Like this image.

My code is here https://dojo.telerik.com/EDERUfEY

Thanks in advance!

Enzoff
  • 1

1 Answers1

0

The only sorting that we can apply is on the data source group.

"dataSource": {
          data: data,
          group: {
            field: "type",
            dir: "desc"
          },
          sort: {
            field: "daysOut",
            dir: "asc"
          },

This API Reference Link, explains why data source sort attribute is overridden by grouping and how we can see it sorted by a particular group when we click on the legend labels. As of now, I have not found any solutions to render the chart with a stacked bar sorted by values.

  • Hello Marissa, The sort in the kendo support is for complete columns. I need sort the bar series in each column. – Enzoff Mar 01 '19 at 17:52
  • Hi @Enzoff, I have updated the link above, do check it out. – Marissa Fernandes Mar 05 '19 at 08:53
  • Hi Marissa, I see the sample but it does not sort series in each columns. All columns begin with serie "A". In the kendo sample if one category (for exaple "Adam") if the serie "A" set to a value greather than serie "B", it still draw serie "A" before than series "B" – Enzoff Mar 06 '19 at 14:11