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
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Bar Chart cannot sort in original order?

Thread ID:





146338 Jul 31,2019 08:19 PM UTC Aug 1,2019 06:11 AM UTC WinForms 2
Tags: Chart
Feng Jiang
Asked On July 31, 2019 08:19 PM UTC

Horizontal bar chart is a little bit odd, because it has X and Y axes reversed. 

Now I have four horizontal bars need to display: 
  • 3 and 4 years old
  • 5 and 6 years old
  • 7 to 13 years old
  • 14 to 17 years old
When the four bars are put on the axis, they are sorted into:
  • 14 to 17 years old
  • 3 and 4 years old
  • 5 and 6 years old
  • 7 to 13 years old
Apparently it is because "1" is sorted ahead of other numbers.

There is "Indexed" may put the categories in original order, but it only works on X axis, but in bar chart the category is on Y axis. So it does not work for bar chart.

Is there anyway I can show the bars in the original order of the points of the bar series?


Feng Jiang
Replied On July 31, 2019 08:35 PM UTC

OK. I just fixed this with "Customizing Label Text".

Baby Palanidurai [Syncfusion]
Replied On August 1, 2019 06:11 AM UTC

Hi Feng, 

Most welcome. Kindly revert us, if you need any further assistance on this. We are always happy in assisting you. 



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon