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
BarbaraYanChen
Regular Visitor

How to change the line color on overlapped charts

Hello,

 

I want to make a overlapped chart (line and stacked bar) in Power BI.  Here are the steps: (1) I made a line chart (3 lines), then unchecked 2 legend, only one line on the chart (1 legend) (2) I copied the line chart and pasted/changed to a new stacked bar chart, checked the uncheked 2 legend to show on the bar (3) then I overalpped line (back)  and stacked bar (front), please see below screen shot.  I already changed the stacked bar color to green and yellow. My question: how to chagne the purple line to black color.  FYI, they are using the same filter/format/build pane.  when I tried to change the line color, the function is not clickedable, please see below screen shot.  

BarbaraYanChen_0-1736550942460.png

BarbaraYanChen_0-1736551528518.png

 

Thanks,

 

Barbara

 

 

1 ACCEPTED SOLUTION
v-rzhou-msft
Community Support
Community Support

Hi @BarbaraYanChen ,

 

Here I create a sample to have a test and I could reproduce your issue. It seems that you cannot modify the color of the line if the field you are using as 'Legend' has only one type.

vrzhoumsft_0-1736759168815.png

Here I suggest you to remove the filter in legend and change the line color to black and then check the one legend

you need.

vrzhoumsft_1-1736759302121.pngvrzhoumsft_2-1736759311461.png

 

Best Regards,
Rico Zhou

 

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

3 REPLIES 3
v-rzhou-msft
Community Support
Community Support

Hi @BarbaraYanChen ,

 

Here I create a sample to have a test and I could reproduce your issue. It seems that you cannot modify the color of the line if the field you are using as 'Legend' has only one type.

vrzhoumsft_0-1736759168815.png

Here I suggest you to remove the filter in legend and change the line color to black and then check the one legend

you need.

vrzhoumsft_1-1736759302121.pngvrzhoumsft_2-1736759311461.png

 

Best Regards,
Rico Zhou

 

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

Hi Rico,

 

Thanks for providing your solution. It worked.  Really appreicated it!

 

Barbara

N0EL
Frequent Visitor

Hey @BarbaraYanChen 

 

Are you able to change the color of you change the series from "All" to the series you are displaying?

2025-01-10_18-24-18.png

 

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!

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.