Hi!
I’m trying to create a treemap with highchart, I found the one I need in highchart web page, I need 2 dimensions in the treemap. this is the code, but it does not woks as it doesn’t show 2 levels.
Any idea if it’s possible to get a 2 level tremap?
this is the code:
{
“series”: [{
“type”: “treemap”,
“name”: “Norge”,
“allowTraversingTree”: true,
“alternateStartingDirection”: true,
“dataLabels”: {
“format”: “{point.name}”,
“style”: {
“textOutline”: “none”
}
},
“borderColor”: “#ffffff”,
“borderRadius”: 3,
“nodeSizeBy”: “leaf”,
“levels”: [{
“level”: 1,
“layoutAlgorithm”: “sliceAndDice”,
“groupPadding”: 3,
“dataLabels”: {
“headers”: true,
“enabled”: true,
“style”: {
“fontSize”: “0.6em”,
“fontWeight”: “normal”,
“textTransform”: “lowecase”
}
},
“borderRadius”: 3,
“borderWidth”: 1,
“colorByPoint”: true
}, {
“level”: 2,
“dataLabels”: {
“enabled”: true,
“inside”: false
}
}],
“data”: [“getColumn”, 0,1,2 ]
}]
}