Forum Discussion

UlrickT's avatar
UlrickT
Frequent Visitor
9 years ago
Solved

Report Theme Colors

I know that its possible to make a list of DataColors in a JSON file. But what is the logic behind them? In which order are these used when applying the Theme to e.g. a PIE chart?    It seems to be...
  • v-jiascu-msft's avatar
    v-jiascu-msft
    8 years ago

    Hi UlrickT,

     

    Yes, the colors show up as you list them in the JSON. Power BI extends the colors from lighter to it. After all, the colors listed in the JSON aren't enough. 

    {
        "name": "St Patricks Day",
        "dataColors": ["#568410", "#3A6108", "#70A322", "#915203", "#D79A12", "#bb7711", "#114400", "#aacc66"],
        "background":"#FFFFFF",
        "foreground": "#3A6108",
        "tableAccent": "#568410"
    }

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

    Best Regards!

    Dale