-
Re: Increasing font size with a custom theme
Peter Cappelle Feb 15, 2018 9:38 AM (in response to Aaron Bishop)Hi Aaron Bishop,
Always try to validate your JSON code here: https://jsonlint.com/
If you validate it you will see you miss a "comma" after the second "@default" in the value block.
{ "_inherit": true, "_variables" : { "@greenColor" : "#61a729", "@text": "#4c4c4c" }, "color": "@text", "fontSize": "24px", "object" : { "title": { "main": { "fontSize" : "24px" } }, "label": { "name": { "color": "@default", "fontSize" : "24px" }, "value": { "color": "@default", "fontSize": "24px" } } }, "dataColors": { "primaryColor": "@greenColor" } }
-
Re: Increasing font size with a custom theme
Aaron Bishop Feb 15, 2018 12:10 PM (in response to Peter Cappelle )Peter,
Thank you for the direction! That definitely helps. However, after adding the comma, none of the font sizes of the labels on my graphs changed. Any ideas?
Thanks again,
Aaron
-
Re: Increasing font size with a custom theme
Aaron Bishop Feb 15, 2018 1:36 PM (in response to Aaron Bishop)I figured out my problem. I thought that changing the "labels" values would change the labels for the axes in the graph. However, to change the labels on a graph's axis, I needed to do the following:
{
"_inherit": true,
"_variables" : {
"@greenColor" : "#61a729",
"@text": "#4c4c4c"
},
"color": "@text",
"fontSize": "24px",
"object": {
"title": {
"main": {
"fontSize" : "24px"
}
},
"axis" : {
"label" : {
"name" : {
"fontSize" : "20px"
}
}
}
},
"dataColors": {
"primaryColor": "@greenColor"
}
}
-
-