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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Sept PBI Carousel

Power BI Monthly Update - September 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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

Top Solution Authors
Top Kudoed Authors