Kendo UI for Angular - Chart Sorting

1 Answer 17 Views
Charts
Girish
Top achievements
Rank 1
Girish asked on 06 Jun 2024, 10:08 AM

Hello,

Is it possible to provide sorting capability to chart? In the basic example of Bar chart here https://www.telerik.com/kendo-angular-ui/components/charts/series-types/bar/ If I wanted to sort based on unit sorts, highest to lowest or lowest to highest. for simplicity we can ignore multiple bar for Q1.... Qn

Thanks 

1 Answer, 1 is accepted

Sort by
0
Accepted
Martin Bechev
Telerik team
answered on 11 Jun 2024, 06:16 AM

Hi Girish,

The Kendo Chart component doesn't provide a built-in sorting functionality. However, the developer can use the JavaScript sort method, and sort the data source used by the Chart. The Chart series are created based on the order in the collection, thus it will respect the applied sorting.

Regards,
Martin Bechev
Progress Telerik

Stay tuned by visiting our public roadmap and feedback portal pages! Or perhaps, if you are new to our Kendo family, check out our getting started resources
Girish
Top achievements
Rank 1
commented on 13 Jun 2024, 06:10 AM

Thanks for your suggestion. Yes we are implementing custom sort through JavaScript and data source.
Tags
Charts
Asked by
Girish
Top achievements
Rank 1
Answers by
Martin Bechev
Telerik team
Share this question
or