Fixed non-matching changestate length in linechart

This commit is contained in:
frank shao 2013-11-27 08:36:45 -05:00
parent 168b9703c2
commit d3467a8838
3 changed files with 7 additions and 7 deletions

View File

@ -5678,7 +5678,7 @@ nv.models.lineChart = function() {
dispatch.on('changeState', function(e) {
if (typeof e.disabled !== 'undefined') {
if (typeof e.disabled !== 'undefined' && data.length === e.disabled.length) {
data.forEach(function(series,i) {
series.disabled = e.disabled[i];
});

10
nv.d3.min.js vendored

File diff suppressed because one or more lines are too long

View File

@ -303,7 +303,7 @@ nv.models.lineChart = function() {
dispatch.on('changeState', function(e) {
if (typeof e.disabled !== 'undefined') {
if (typeof e.disabled !== 'undefined' && data.length === e.disabled.length) {
data.forEach(function(series,i) {
series.disabled = e.disabled[i];
});