Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi I'm trying to add powerbi theme color palette to my custom visual, I was able to generate color palette using IVisualHost.colorPalette.getColor() function and successfully change color based on different theme selections, but in the default theme selection I don't want to use that color palette provide by powerbi, so is there is any way to detect if the selected theme is default or not?
Hi @v-shex-msft,
Thanks for the replay, I implemnetd theme support in custom visual, but what I want is if I selected the default theme I don't want to use the color palette powerbi provides, So in order to achieve that I need to know which theme is currently active(selected by the user), so is there is any way to know which theme is currently set by the user.
Hi @vyshnav4u,
AFAIK, the current power bi theme does not work for custom visuals. If you want to custom visual also interact with the theme settings, you need to add code support about the theme and properties.
Adding formatting options to a Power BI custom visual - Power BI | Microsoft Docs
Regards,
Xiaoxin Sheng
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
16 | |
2 | |
1 | |
1 | |
1 |
User | Count |
---|---|
26 | |
3 | |
2 | |
2 | |
2 |