Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Hi!
I made a line graph with a dynamic legend (you can choose age group or gender or country, etc.). But everytime the legend changes, the colors of my line graph change! Even if I set the colors of one legend, it's different when I choose another legend and go back to the first. It is especially annoying since Power BI chooses colors like grey-white that are barely visible...
Who can tell me how to make sure the legends of my line graphs are always the same colors? (although they don't have the same amount of values).
Thanks!
Solved! Go to Solution.
Hi @Anonymous,
Everytime, we create a line chart and add a legend, the color of is set by default. When you change the color and change the legend, it will go back the original default color, which is a by design behaviour, we can't make sure the legends of my line graphs are always the same colors. If you want to display the same color for different legend, please set the same color every time you change the legend.
Best Regards,
Angelia
Hi @Anonymous,
Everytime, we create a line chart and add a legend, the color of is set by default. When you change the color and change the legend, it will go back the original default color, which is a by design behaviour, we can't make sure the legends of my line graphs are always the same colors. If you want to display the same color for different legend, please set the same color every time you change the legend.
Best Regards,
Angelia