在 "@antv/g2": "~4.2.10" 版本使用 Chart 时,请问如何取消 legend 的默认点击行为,即不想点击图例后,对应的折线消失,图例只用作显示 #6281
              
                Unanswered
              
          
                  
                    
                      SnowBeforeSpring
                    
                  
                
                  asked this question in
                Q&A
              
            Replies: 1 comment
-
| 
         可以看看文档,关闭对应的 interaction。  | 
  
Beta Was this translation helpful? Give feedback.
                  
                    0 replies
                  
                
            
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
-
问题描述
import { Chart } from '@antv/g2'
const res = new Chart({
container: antVLineContainer.current as HTMLElement,
autoFit: true,
})
chart.legend({
position: 'top',
marker: { symbol: 'hyphen' },
// 这里看类型定义里面没有禁止点击事件的方法 or 属性
})
重现链接
No response
重现步骤
No response
预期行为
No response
平台
屏幕截图或视频(可选)
No response
补充说明(可选)
No response
Beta Was this translation helpful? Give feedback.
All reactions