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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
BarbaraYanChen
Frequent 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
Resolver I
Resolver I

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!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

Feb2025 NL Carousel

Fabric Community Update - February 2025

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