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

Different Color for Line Chart

Hi Team,

I have used a line chart where I am using  Legend which had around 60 different values and I am showing only the top 5. However sometime I get same color for different values see the circled once in the screenshot. I have set all 8 colors in the Theme to be different however still it shows same colors sometimes.

1) What would be a solution to show different colors for each line?(Instead of not manully applying color to each; as these may change from 60 to 100 next month and so on.)

2) Is there a way we can assign color to the top 5 bucket and not matter what legend is calculated in top 5 the color will be different?

 

priyankrd_0-1595816678629.png

 

1 ACCEPTED SOLUTION
v-xicai
Community Support
Community Support

Hi @Anonymous ,

 

For your first question, when you put some field into Legend box of the chart visual, the displayed colors seems to be the same sometime, while in fact, the colors are different in dark and light for the same series of color .

 

For your second question, you may set filter in Filter pane to get top 5 data in line chart , then if the displayed colors are similar, you may set distinguished color for every legend in "Data color" option under Format pane. While based on my test, it's usually to return distinguished colors, and you needn't to set further.

 

Best Regards,

Amy 

 

Community Support Team _ Amy

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

4 REPLIES 4
v-xicai
Community Support
Community Support

Hi @Anonymous ,

 

For your first question, when you put some field into Legend box of the chart visual, the displayed colors seems to be the same sometime, while in fact, the colors are different in dark and light for the same series of color .

 

For your second question, you may set filter in Filter pane to get top 5 data in line chart , then if the displayed colors are similar, you may set distinguished color for every legend in "Data color" option under Format pane. While based on my test, it's usually to return distinguished colors, and you needn't to set further.

 

Best Regards,

Amy 

 

Community Support Team _ Amy

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

amitchandak
Super User
Super User

@Anonymous . As of now line is using legend, you can not choose color via conditional formatting.

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here
Anonymous
Not applicable

@amitchandak Thanks for your reply, is there any recommendations about how I can achive what I am looking for?

@Anonymous ,

see if some custom visual can help

https://blog.pragmaticworks.com/power-bi-custom-visuals-chartaccent-linechart

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

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.