when change layout dynamic to hierarchy .and come back again to dynamic layout not changed.when i am click your default restorelements icon from the toolbar it will change
//here is my code
$scope.topology.changechartViewClick = function(change) {
var see = {}
if (change == "hierarchy") {
see.layout = {
mode: "hierarchy",
nodeSpacing: 60,
rowSpacing: 500
}
}
if (change == "Forced") {
see.layout = {
mode: "dynamic",
nodeSpacing: 30
}
// chart.resetLayout();
}
if (change == "radial") {
see.layout = {
mode: "radial",
nodeSpacing: 30
}
}
if (change == 'static') {
see.layout = {
mode: "static",
nodeSpacing: 30
}
}
// zoomchartObject(zoomChartObject)
chart.updateSettings(see);
}