diff --git a/src/plots/line/animation/clipIn-with-data.ts b/src/plots/line/animation/clipIn-with-data.ts index fb535976a9..3e062e6381 100644 --- a/src/plots/line/animation/clipIn-with-data.ts +++ b/src/plots/line/animation/clipIn-with-data.ts @@ -13,7 +13,7 @@ function clipingWithData(shape, animateCfg) { shape.attr('clip', clip); shape.setSilent('animating', true); const label = getLineLabel(animateCfg.plot.view, shapeData[0]._origin[animateCfg.seriesField]); - if (label) { + if (label && !label.get('destroyed')) { label.set('visible', false); } const parent = shape.get('parent'); @@ -58,7 +58,7 @@ function clipingWithData(shape, animateCfg) { 300, () => { marker.remove(); - if (label) { + if (label && !label.get('destroyed')) { label.set('visible', true); animateCfg.plot.canvas.draw(); }