Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

Reply
po
Post Prodigy
Post Prodigy

datacolours on local visuals using .json theme file possible?

Hi,

 

Can use a .json theme file to set the properties of local visuals to override the global properties and works fine and behaves as expected except for local visuals datacolours.

 

When put "dataColors":["#063d73","#Febe10","#ed2038"...]  in local visuals e.g. line chart, scatter chart , 100%stacked bar chart find that the global data colours at top of .json file always look to take precedence over putting 

dataColors":["#063d73","#Febe10","#ed2038"...]  at local visual level.

 

Cannot see any examples of local visuals .json using datacolours e.g to try and set the data colours of e.g lines, bars at local visuallevel.

 

Is this possible?

 

Thanaks

2 REPLIES 2
v-chuncz-msft
Community Support
Community Support

@po,

 

You may try the Report Theme Generator V3.

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

Thanks for reply.

 

Have tried this.

 

Problem we have is that although for all the visuals we can successfully override the default e.g we can set the fonts, background on the visuals to be  different to the global font and background when try datacolours setting individually on visuals such as linechart, the global datacolours at top of theme file are the ones the visual chooses.

 

Has anyone got the datacolours of the visuals different via the .json theme file to the datacolours set at top of theme file 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.