Forum Discussion

po's avatar
po
Post Prodigy
7 years ago

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

    • po's avatar
      po
      Post Prodigy

      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