angularjs - Disable legend based on another legend click - angular nvd3 chart -


i disable legend(breached95) based on click of legend(var95) in nvd3 chart.

enter image description here

below script fires legend click event gives click legend values unable disable legend based on event. how achieve behavior?

 callback: function(chart) {                        chart.legend.dispatch.legendclick = function(val, i){                             if(val.originalkey==="var95total"){                                 //hide 'breached95' legend                             }                         };                     }, 


Comments

Popular posts from this blog

javascript - Create a stacked percentage column -

Optimising Firebase database by automatically overwriting data -

javascript - Angular UI-Grid customTemplate directive causing rows to load slowly/? -