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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors