Browse Source

protecting updateLegend call based on legend:show config to avoid js error.

pull/51/head
Danner 11 years ago
parent
commit
4e7c38e329
  1. 4
      c3.js

4
c3.js

@ -2486,7 +2486,9 @@
.remove(); .remove();
// update legend // update legend
updateLegend(c3.data.targets, {withTransition: withTransition}); if (__legend_show) {
updateLegend(c3.data.targets, {withTransition: withTransition});
}
// update fadein condition // update fadein condition
getTargetIds().forEach(function (id) { getTargetIds().forEach(function (id) {

Loading…
Cancel
Save