I built a treemap and wanted to alter some attributes of the graph, namely the size of the font used on node descriptions and specify the colors of teh various nodes
When right-clicking on the graph and choosing "View Source" -> "Parsed JSON", I see that the settings are put in each element of labels
. How can I access these prior to rendering to force my choices (either global (the font) or per-node (the background colors))?
Since the parsed JSON view shows that, as an example and for a given element of label
, "background-color":"#1f1f1f"
is set at the same level as text
, I tried to put this in my series
:
{
"text": "Candidates",
"children": [
{
"text": "Can not scan: 13 %",
"value": 13
},
{
"text": "Scanned: 87 %",
"children": [
{
"text": "Not authenticated: 61 %",
"children": [
{
"text": "Confirmed vulnerable: 38 %",
"value": 38,
"font-color": "yellow"
},
{
"text": "Unknown: 23 %",
"value": 23
}
]
},
(...)
but "font-color": "yellow"
(or any other attribute) is not applied.