Fixed non-matching changestate length in linechart
This commit is contained in:
parent
168b9703c2
commit
d3467a8838
2
nv.d3.js
2
nv.d3.js
@ -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
10
nv.d3.min.js
vendored
File diff suppressed because one or more lines are too long
@ -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];
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user