New issue
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
自定义图例失效 #5364
Comments
@daykalif chart.changeData 会改变所有 chart 下 view 的 data, 而你改变的数据 唯一适用的是 第一个 interval, 尝试 changeData 的时候,不适用 chart 而是 对应的 mask 看看。 import { Chart } from '@antv/g2'; const chart = new Chart({ const data = [ const colorField = 'genre'; const demo = chart // part1注释 // part2注释 chart.render().then(renderCustomLegend); function renderCustomLegend(chart) {
}); // Mount legend items. // Emit legendFilter event. |
解开任意part1或者part2部分,都会使自定义legend失效。(其中part1是用于增加x,y轴的中心线;part2是用于增加象限图背景区域划分)
复现代码:
The text was updated successfully, but these errors were encountered: