Commit 4e7c38e3 authored by Danner's avatar Danner

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

parent 5a9dd93e
......@@ -2486,7 +2486,9 @@
.remove();
// update legend
updateLegend(c3.data.targets, {withTransition: withTransition});
if (__legend_show) {
updateLegend(c3.data.targets, {withTransition: withTransition});
}
// update fadein condition
getTargetIds().forEach(function (id) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment