[图例交互自定义] 外部自定义图例,与图表联动 #2363
ggclearlove
started this conversation in
Show and tell
Replies: 1 comment
|
筛选吗?可以获取到图表的 G2 实例: chart/ view, 手动调用 filter。比如柱状图 const chart = plot.chart;
chart.filter('area', (d) => d === '华北'); // 选中
chart.filter('area', (d) => d !== '华北'); // 不选中 |
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.
图例样式比较复杂,自己在外部重新写的,请问如何通过外部的点击与图表产生联动?
All reactions