Color Blind Friendly

Power BI Team
15472 Views
Power BI Team
Posts: 80
Registered: ‎06-19-2015

Color Blind Friendly

[ Edited ]

The default theme for Power BI is not the best choice for color blind users. This theme is meant to be a better choice for your reports if you have users who are color blind. It is based on the color palette found here: http://mkweb.bcgsc.ca/biovis2012/

 

 

 

Attachment
Frequent Visitor
Posts: 3
Registered: ‎11-09-2016

Re: Color Blind Friendly

Background on Slicers.png

Any idea what in this theme would cause my slicers to now have a gray background?

I can't find a way to manually change it back, either.

Frequent Visitor
Posts: 2
Registered: ‎06-29-2017

Re: Color Blind Friendly

What type of grey are you seeing? There is a "foreground" color of #074650 that is a greenish grey. It's on line 5.

Frequent Visitor
Posts: 2
Registered: ‎06-29-2017

Re: Color Blind Friendly

What type of grey are you seeing? There is a "foreground" color of #074650 that is a greenish grey. It's on line 5.

Frequent Visitor
Posts: 13
Registered: ‎12-12-2017

Re: Color Blind Friendly

Thank you for your file. I am new to coding and have a question. What is the use of "*" and why it is being used here? Below is the extract from your code: 

 

 

"visualStyles":{"*":
{"*":
{"*":[{"fontSize":8,"fontFamily":"Calibri, Cambria","color":{"solid":{"color":"#e54016"}}}],
"general":[{"responsive":true}],
"plotArea":[{"transparency":100}]
}
},

 

Thanks in Advance !!

Frequent Visitor
Posts: 13
Registered: ‎12-12-2017

Re: Color Blind Friendly

when I posted the above comment, I was new to this code. As I can see there are 808 view as on 16th Jan 2018, no one was able to comment on this. 

I was able to dig and on my own was able to understand the above code. 

 

People, please respond to the query as it will save time of others. 

Regular Visitor
Posts: 15
Registered: ‎11-08-2017

Re: Color Blind Friendly

[ Edited ]

You can refer to Microsoft's Use Report Themes in Power BI Desktop (Preview), the Report theme JSON file format section for details on using asterisks in Themes. Also, Curbal's Power BI Template to create Report Themes with the JSON template includes a useful Guide to creating JSON files.

Frequent Visitor
Posts: 13
Registered: ‎12-12-2017

Re: Color Blind Friendly

Thanks Buddy. It was really helpful. I appreciate your time in responding to my query.

Frequent Visitor
Posts: 3
Registered: ‎07-13-2018

Re: Color Blind Friendly

Hi!

 

It's a bit late but reading the documentation, here is the answer:

 

Spoiler
For the visualName and cardName sections, you can list a specific visual and cardName, or you can use an asterisk ("*") if you want that setting to apply to all visuals or all cards that contain a property for a specific visual. You can use the asterisk ("*") when you want to apply a setting globally in your report, such as a font size or specific font family that should be used throughout all visuals in your report.
Frequent Visitor
Posts: 13
Registered: ‎12-12-2017

Re: Color Blind Friendly

Thank you, it was helpful to decode theme code heirarchy.