Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Legend sorting on a diverging bar chart doesn't match

I've created a diverging bar chart using a 100% stacked bar chart but the sorting of each individual legend item does not match the legend as shown in the image below

Screen Shot 2020-07-08 at 12.36.24 PM.png

  What I want to accomplish is to have the Answer 0 legend items appear on the far left, followed by Answer 1, followed by Answer 2, etc... In other words, the order of the items for the charts elements should match the legend.  The Answer Text column is being sorted by SortOrder which is an integer.  I'm thinking this has something to do with the negative x-axis.  Any help would be greatly appreciated

 

1 ACCEPTED SOLUTION
V-lianl-msft
Community Support
Community Support

Hi @Anonymous ,

 


@Anonymous wrote:

I've created a diverging bar chart using a 100% stacked bar chart but the sorting of each individual legend item does not match the legend as shown in the image below

Screen Shot 2020-07-08 at 12.36.24 PM.png

  What I want to accomplish is to have the Answer 0 legend items appear on the far left, followed by Answer 1, followed by Answer 2, etc... In other words, the order of the items for the charts elements should match the legend.  The Answer Text column is being sorted by SortOrder which is an integer.  I'm thinking this has something to do with the negative x-axis.  Any help would be greatly appreciated


Yes, as you said, it's design. The negative axis is sorted in the opposite order. I believe you can understand this principle.

 

Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
V-lianl-msft
Community Support
Community Support

Hi @Anonymous ,

 


@Anonymous wrote:

I've created a diverging bar chart using a 100% stacked bar chart but the sorting of each individual legend item does not match the legend as shown in the image below

Screen Shot 2020-07-08 at 12.36.24 PM.png

  What I want to accomplish is to have the Answer 0 legend items appear on the far left, followed by Answer 1, followed by Answer 2, etc... In other words, the order of the items for the charts elements should match the legend.  The Answer Text column is being sorted by SortOrder which is an integer.  I'm thinking this has something to do with the negative x-axis.  Any help would be greatly appreciated


Yes, as you said, it's design. The negative axis is sorted in the opposite order. I believe you can understand this principle.

 

Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.