Forum Discussion

shaileng's avatar
shaileng
Frequent Visitor
8 years ago

Custom Theme not working

Hi,

 

I have multiple visuals in my report and instead of controlling the colors manually , I want to create custom theme to control the colors at one place so that I don't have to do it again and again for similar visuals.

 

I wrote following JSON file which I can import successfully but the color never changes as expected.

I need the customization for pieChart, PivotTable, hundredPercentStackedBarChart etc.

 

Sample code

{
     "name": "MyTheme",
     "dataColors": ["#94B6D2","#88909A","#88919A","#677E94","#94B5D4","#B3B3B3"],
     "background":"#CCCCCC",
     "foreground": "#666666",
     "tableAccent": "#568410",
     "visualStyles":{
             "pieChart": {
                     "*": {
                                            "dataColors": ["#99CC66","#FF0099","#6600CC","#660000"]
                                           }  
                               }
                            }
}

 

I was playing around with names and properties but nothing working. Can someone help please

1 Reply

  • v-yulgu-msft's avatar
    v-yulgu-msft
    Microsoft Employee

    Hi shaileng,

     

    Please download the sample JSON file and import it to your own desktop report to see if it works. If works, then modify the sample file by changing the color type depend on your needs.

     

    Regards,

    Yuliana Gu