I would like to disable a legend(breached95) based on the click of another legend(var95) in nvd3 chart.
Below script fires the legend click event which gives the click legend values but unable to disable another legend based on this event. How to achieve the behavior?
callback: function(chart) {
chart.legend.dispatch.legendClick = function(val, i){
if(val.originalKey==="VaR95Total"){
//hide 'breached95' legend
}
};
},