Forum Discussion

le_tool's avatar
le_tool
Helper I
6 years ago

.json revert to default

Hello guys,

I am trying to set one setting for my custom theme, but it just doesn't load up. Only thing that gets it turned on, is to manually click the button "revert to deafult"(in this case I cannot switch on the "defaultIconIsCircle" in the area chart):

 

According to .json custom theme documentation on microsoft page:

You need only specify the formatting elements you want to adjust. Any formatting elements that aren't included in the JSON file revert to their default values and settings.

Thus - when you omit some setting in the .json file, it should act is if you've actually clicked that "revert to default" button. But it doesn't get reset.

 

My question is, does somebody have line of code that I can insert under the visual into the .json code which gets the visual/whole theme reset? e.g.

 

"barChart": {
"*": {
"general": [{
"responsive": true
}],
"legend": [{
"show": true

etc..

+ "revertToDefaults": true

 

Thank you!

 

9 Replies