antvis / G6

♾ A Graph Visualization Framework in JavaScript.
https://g6.antv.antgroup.com/
MIT License
11.02k stars 1.3k forks source link

如何过滤? how to filter data? #5104

Closed neolee6053 closed 10 months ago

neolee6053 commented 10 months ago

问题描述

https://github.com/antvis/G6/issues/2837 我看见两年前有人问过,答案是用 hideItem() 请问现在,还是一样吗? 有没有setData之类的function? :)

重现链接

https://codesandbox.io/s/new

重现步骤

如上

预期行为

如上

平台

屏幕截图或视频(可选)

No response

补充说明(可选)

No response

Yanyan-Wang commented 10 months ago

不太清楚你这里筛选数据的原始需求,可以通过 changeData 来更换数据

neolee6053 commented 10 months ago

太好了!