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
在G2 V5.2.2版本下使用以下代码无效 const chart = new Chart({ container: 'container', autoFit: true, });
chart .interval() .data(data) .encode('x', '月份') .encode('y', '月均降雨量') .encode('color', 'name') .transform({ type: 'stackY' }) .interaction('elementHighlight', { background: true });
chart.interaction('tooltip', { shared: true, showMarkers: false, });
// interaction方法似乎不支持active-region chart.interaction('active-region')
chart.render();
No response
鼠标在画布上移动时对应位置的分类出现背景框,并且点击背景可以提供回调方便添加其他操作
The text was updated successfully, but these errors were encountered:
No branches or pull requests
问题描述
在G2 V5.2.2版本下使用以下代码无效
const chart = new Chart({
container: 'container',
autoFit: true,
});
chart
.interval()
.data(data)
.encode('x', '月份')
.encode('y', '月均降雨量')
.encode('color', 'name')
.transform({ type: 'stackY' })
.interaction('elementHighlight', { background: true });
chart.interaction('tooltip', {
shared: true,
showMarkers: false,
});
// interaction方法似乎不支持active-region
chart.interaction('active-region')
重现链接
No response
重现步骤
No response
预期行为
鼠标在画布上移动时对应位置的分类出现背景框,并且点击背景可以提供回调方便添加其他操作
平台
屏幕截图或视频(可选)
补充说明(可选)
No response
The text was updated successfully, but these errors were encountered: