We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
不报错
在这个 demo 添加 useState
import React,{useState} from 'react'; import ReactDOM from 'react-dom'; import { Column } from '@ant-design/plots'; const DemoDefaultTooltip = () => { + const [value, setValue] = useState(); const data = [ { letter: 'W', frequency: 236 }, { letter: 'X', frequency: 15 }, { letter: 'Y', frequency: 1974 }, { letter: 'Z', frequency: 74 }, ]; const config = { data, xField: 'letter', yField: 'frequency', + interaction:{ + elementSelect: true, + }, onReady: ({ chart }) => { + chart.on(`interval:click`, (event) => { + console.log(event, 'event') + setValue(123) + }) }, }; return <Column {...config} />; }; ReactDOM.render(<DemoDefaultTooltip />, document.getElementById('container'));
The text was updated successfully, but these errors were encountered:
No branches or pull requests
🐛 bug 描述 [详细地描述 bug,让大家都能理解]
📷 复现步骤 [清晰描述复现步骤,让别人也能看到问题]
🏞 期望结果 [描述你原本期望看到的结果]
不报错
💻 复现代码 [提供可复现的代码,仓库,或线上示例]
在这个 demo 添加 useState
© 版本信息
🚑 其他信息 [如截图等其他信息可以贴在这里]
The text was updated successfully, but these errors were encountered: