https://finviz.com/map.ashx?t=sec
i am using layoutAlgorithm: 'squarified' which should work. is there a way i can control the color of each node ?
data format is as shown.
Code: Select all
{id: 'root', name: 'S&P 500', children: [
{id: 'Ag', name: 'Ag', children: [], data:{
$area: 99063506184, $color: '#5E7D54', value: 1.2949762563131773, leaf: false, symbolCount: 4
}},
{id: 'Build Mad', name: 'Build Mad', children: [], data:{
$area: 43086911264, $color: '#5E7D54', value: 1.5590374401237133, leaf: false, symbolCount: 2
}}
]};
would above format of json work ? or do i have follow the json format and make it the way it shown in example ?
when user clicks on level1 i will have to load leaf level dynamically via ajax ? how can i do that ?
i do want to zoom in only when user clicks on 'title' of level -1 which is blue line in the image.. is that possible ?