Forum Discussion
Data Values Order in Stacked Bar Chart
In creating a stacked bar chart to plot survey responses to a Likert scale question, I've been able to create a 'sort order' table which fixes the issue of sorting the Legend into the correct order, but that isn't translating to the Values and the percent who responded 'Disagree' is being displayed as more negative than 'Strongly Disagree' in the bars (see image below)
I've tried changing the 'Sort By' options in the fly-out menu of the visual, I've tried referencing the value from both the 'sort order' table I created to sort the legend as well as from the original 'survey responses' table, and I've tried tricking it alphabetically by adding a space or the number 1 to the front of the Strongly Disagree option, and in all instances the value bars will display the Disagree responses to the left of the Strongly Disagree responses.
There has to be a simple fix to this and the fact I haven't been able to figure it out yet is driving me mad, so any suggestions is greatly appreciated -- thank you!
2 Replies
- AnonymousNot applicable
Hi bmcirillo
Please double check you sorted the 'Survey Value' column in the Sort Order Table with the numerical index column.
The option is in the 'Column Tools' Menu
In my case, I faced a similar issue. I had to go back to Sort Order Table, and sort the 'Status' Column using 'Sort By' which is the numerical index I preferred(Rank).
Hope this helps.
Please 'Accept it as a Solution' if this works.
Thanks
- mattwwResponsive Resident
Hi bmcirillo
Have you tried a SortOrder with negatives
Strongly Disagree = -2
Disagree = -1
Neutral = 1
Agree = 2
Strongly Agree = 3
Also, it looks like a recent update has improved the Sort Order options, so check you're on the latest version
If this post helps then please consider Accept it as the solution to help the other members find it more quickly.