I'm working on a sunburst diagram with the Infovis javascript toolkit.
My goal is to collapse all nodes above a specific level for selective expansion purposes.
This is what I have implemented:
if(node.data.class == "level1" )
{
sb.op.contract(node,{hideLabels: true});
}
Unfortunately, this approach is not yielding the desired results.