Forum Discussion

MoniekvanBerkel's avatar
MoniekvanBerkel
New Member
1 year ago
Solved

Colors DonutChart

I have a report in Power BI and have entered some corporate colors in the theme. I have also applied these colors to various elements, such as a header. However, I now want to use different colors for a donut chart and prevent it from reverting to the corporate colors. How can I do this? I have already tried to import a JSON file, but this did not work. Perhaps it would work with a different visual?

  • Shahid12523's avatar
    Shahid12523
    1 year ago

    First, select the column chart. Then, go to the column color (fx) option and choose 'Field value'. Select the desired measure and apply it. After that, switch the visualization from a column chart to a donut chart.

9 Replies

  • Hi MoniekvanBerkel 

     

    When a corporate theme is applied, it sets default colors for all visuals including donut charts, causing your custom colors to revert on publish.
    To keep your donut chart colors independent of the corporate theme:

    • Manually enter exact HEX codes for Data colors in the Format pane—not from the theme palette.
    • Use Format Painter to copy colors between visuals.
    • Optionally, use conditional formatting via a color measure to dynamically assign colors.
    • Consider custom visuals for stronger color control.

    These methods ensure your donut chart colors stay fixed across editing, refreshing, and publishing to the Power BI Service.

     

    🌟 I hope this solution helps you unlock your Power BI potential! If you found it helpful, click 'Mark as Solution' to guide others toward the answers they need.

    💡 Love the effort? Drop the kudos! Your appreciation fuels community spirit and innovation.

    🎖 As a proud SuperUser and Microsoft Partner, we’re here to empower your data journey and the Power BI Community at large.

    🔗 Curious to explore more? [Discover here].

    Let’s keep building smarter solutions together!

  • Shahid12523's avatar
    Shahid12523
    Community Champion

    Set donut chart colors manually:

    Format pane → Data colors → Show all → pick your own colors.
    Or use a color measure + conditional formatting so the donut ignores the theme.

    JSON theme won’t help much since it applies colors globally.

    • MoniekvanBerkel's avatar
      MoniekvanBerkel
      New Member

      Thank you, I have already tried that, but how do I add the measure? I can format the condition, but only apply it to the slices. With a bar chart, I can adjust/add it.

      • Shahid12523's avatar
        Shahid12523
        Community Champion

        First, select the column chart. Then, go to the column color (fx) option and choose 'Field value'. Select the desired measure and apply it. After that, switch the visualization from a column chart to a donut chart.