Sort Bar Chart

I have a one series bar chart that get about 50 x y elements.  Is there a way to sort descend the y values or does that need to be done in the datasource?


1 Reply

DG Durga Gopalakrishnan Syncfusion Team November 22, 2022 01:43 PM UTC

Hi William,


Greetings from Syncfusion.


We have sorting support for series data in chart control. We suggest you to use sort method to sort the chart series data points either in ascending or descending order based on your requirement. We already have an online demo which depicts your scenario. Please check with the below link.


Online Demo : https://ej2.syncfusion.com/vue/demos/#/bootstrap5/chart/sorting.html


Please let us know if you have any concerns.


Regards,

Durga Gopalakrishnan.


Loader.
Up arrow icon