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

service - Android MediaPlayer calls onCompletion before it already finished -

javascript - Training Neural Network to play flappy bird with genetic algorithm - Why can't it learn? -

javascript - Create a stacked percentage column -