We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

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 08:43 AM

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.
Live Chat Icon For mobile
Up arrow icon