diff --git a/packages/f2/src/components/guide/withGuide.tsx b/packages/f2/src/components/guide/withGuide.tsx index 7907a660a..de7e08e7c 100644 --- a/packages/f2/src/components/guide/withGuide.tsx +++ b/packages/f2/src/components/guide/withGuide.tsx @@ -76,7 +76,8 @@ export default function( render() { const { props, context } = this; - const { coord, records = [], animation, chart, style, onClick } = props; + const { coord, records = [], animation, chart, style, onClick, visible = true } = props; + if(!visible) return; const { width, height } = context; const points = this.convertPoints(records); const theme = this.getGuideTheme();