cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
franmer Frequent Visitor
Frequent Visitor

Is it possible to define fixed colors to items in a column with the recently improved json themes?

The [dataPoint: Data colors] attribute seems to be part of the json structure (seen here), so it seems to be possible. If anyone has done it or knows hows this should be implemented, a little example of the json theme code would be really appreciatted.

Thanks in advance!

Regards

1 REPLY 1
Community Support Team
Community Support Team

Re: Is it possible to define fixed colors to items in a column with the recently improved json theme

Hi @franmer,

 

Please refer to powerbi-desktop-report-themes. There are many examples. I have tried this one:

 

{ 
    "name": "Waveform", 
    "dataColors": ["#31B6FD", "#4584D3", "#5BD078", "#A5D028", "#F5C040", "#05E0DB", "#3153FD", "#4C45D3", "#5BD0B0", "#54D028", "#D0F540", "#057BE0"],
    "background":"#FFFFFF",
    "foreground": "#4584D3",
    "tableAccent": "#31B6FD"
}

Is it possible to define fixed colors to items in a column with the recently improved json theme.JPG

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Best Regards!

Dale

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