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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Anonymous
Not applicable

Line chart Z-Order

Is there a way to specify the Z-order of multiple series on a line chart?

Specifically, how would I force the red line to appear in front of the blue line in the following line chart?

Z-Order.jpg

I have tried ordering the items in the Values specification.  This only affects the ordering of the legend items, but not the actual line display.

 

Thanks,

Ross

 

UPDATE: As noted in the accepted solution, the key to the Z-ordering is to refresh the display after  changing the order of the items in the values list.

1 ACCEPTED SOLUTION

@Anonymous

 

There is a workaround: after change the order of values, please changes pages, or save and reload the report, then it will draw lines in the order that the Legend shows things.

 

Product team will look at possible sorting the line elements at a later time.

 

Best Regards,
Herbert

View solution in original post

7 REPLIES 7
v-jiascu-msft
Microsoft Employee
Microsoft Employee

Hi,

 

It looks strange. I will do more test and post later.

 

Best Regards!

Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Having the same issue with one line on top of another, and no impact of sort order on this.  Sort order only changes the lengend.  Using 2.46.4732.721 64-bit (May 2017)

 

Did anything get solved here?

Anonymous
Not applicable

Still nothing concretely resolved.

However, after randomly moving things around hoping to find some correlation, the desired display order started working.

But I have no idea if/what change may have actually initiated the resulting display.

chart.png

@Anonymous

 

There is a workaround: after change the order of values, please changes pages, or save and reload the report, then it will draw lines in the order that the Legend shows things.

 

Product team will look at possible sorting the line elements at a later time.

 

Best Regards,
Herbert

My line chart is a single value measure with a variable in legend (as opposed to mutliple values).  This fix isn't solving this for me.  Have tried the solution and not experiencing it being fixed unfortunately.  The variable on the legend is sorted and working on other charts.  

In case anyone asks, I have tried reversing the sort of the variable to solve the problem and that doesn't make it change

Greg_Deckler
Super User
Super User

Change your order so that the measure you want is the dominant line. Then go into the format area and switch your data colors?



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

That was my initial expectation and the first thing I tried.

It does change the order in the legend, but does not appear to affect the line display:

Z-Order2.jpg

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.