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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
RoyBelderok
Regular Visitor

R powered custom visual theme settings

Hi, 

 

I'm developing an R powered costum visual and im having some issues with the theme settings/colorpicker not alligning propperly.

- My powerbi desktop theme is set to the default PowerBI theme.

- If I open the colorpicker in powerbi to change the color of my background (or data points) and I select one of the theme colors (1-8) the resulting collors correspond with the theme 'Classic'.

- However the theme colors that are being displayed in the colorpicker window allign with the theme 'Default'

- If I open the 'more colors' option the hex value is passed through correctly and the visual updates to the correct color.

 

In addition; the color picker seems to work perfectly for the general visual settings. Therefore I think defining a theme setting in the settings.ts or the visual.ts might be the easiest way forward?

 

But I can't seem to find documentation on theme settings for PBI custom visuals.

Sincerely,

 

Roy

 

Examples (color displayed left, color sellected right😞 

RoyBelderok_0-1719405798058.png

RoyBelderok_1-1719405813765.png

 

 

 

 

3 REPLIES 3
Anonymous
Not applicable

Hi  @RoyBelderok ,

 

This is the related document, you can view this content:

Use report themes in Power BI Desktop - Power BI | Microsoft Learn

Develop custom visuals in Power BI - Power BI | Microsoft Learn

Customize PowerBI Custom Themes in PowerBI Desktop or with JSON - DrewSK.Tech

 

Best Regards,

Liu Yang

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

I'm still interested if anyone knows how I can define the default theme in the custom R powered visual.

which typescript file do I need to edit?

I've read these and they dont seem to provide an explenation as to why the colors - despite being depicted as the 'default' theme in the colorpicker - return the hexcodes associated with the 'Classic' theme to my visual.

 

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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