Forum Discussion
Change chart or report background color based on the user
Diving into the source code, you may find how to change the color of Page Background.
<div class="visualBackgroundContainer" style="opacity: 1; background-color: rgb(255, 255, 255);"></div>
Based on my research, the new Power BI JavaScript API will allow you to write code that can securely pass through the iframe boundary, so that your application can programmatically perform an action in a report and listen for events from actions that users make from within the reports themselves. However, I do not find a way to change the background color for the time being. You may submit an idea or leave a comment at GitHub.
v-chuncz-msft: Thanks for the info. Power BI Javascript API is not allowing us to change the background color of the report.
Do you have any idea about insert custom javascript into Power BI report?
- v-chuncz-msft10 years ago
Community Support
I've replied your new thread http://community.powerbi.com/t5/Developer/How-to-insert-custom-javascript-and-css-file-into-Power-BI/m-p/82403#M2920.