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
v-jiascu-msft Super Contributor
Super Contributor

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.

Helpful resources

Announcements
Can You Solve These Challenge

Challenge: Can You Solve These?

Find out how to participate in the first Power BI 'Can You Solve These?' challenge.

Community News & Announcements

Community News & Announcements

Get your latest community news and announcements.

Virtual Launch Event

Microsoft Business Applications October Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

Community Kudopalooza

Win Power BI Swag with Community Kudopalooza!

Each week, complete activities and be qualified in the drawing for cool Power BI Swag.

Users Online
Currently online: 134 members 1,730 guests
Please welcome our newest community members: