You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@echarts.apache.org by GitBox <gi...@apache.org> on 2018/10/30 03:10:13 UTC

[GitHub] chairy11 edited a comment on issue #9292: 关系图中怎样显示部分nodes? (根据属性筛选)

chairy11 edited a comment on issue #9292: 关系图中怎样显示部分nodes? (根据属性筛选)
URL: https://github.com/apache/incubator-echarts/issues/9292#issuecomment-434156116
 
 
   @100pah 
   > 如果筛选条件不需要动态逻辑(即,每个节点属于哪个类能预先确定)的话,那么 graph 的 [categories](http://www.echartsjs.com/option.html#series-graph.categories) 能支持筛选,例如 http://echarts.baidu.com/examples/editor.html?c=graph。
   
   不够呢,比如除了category,我还有好几种不同维度的属性,需要根本不同的维度属性筛选。
   比如:
   1000个nodes,id为0~999,分类为"类别一"、"类别二"。
   加上搜索框,搜索的是名字中含有"汽车"的node。这时候后台搜索,返回了ids。这个ids是[0,2,3,4]。我就想在原数据基础上,只显示这四个点,其它的全部隐藏。
   
   现在我的做法是更新nodes数据本身,可以实现。
   但我想,既然可以在legend上点击category就实现部分节点的显示和隐藏,那我能不能用同类事件触发部分数据的显示和隐藏?
   
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@echarts.apache.org
For additional commands, e-mail: dev-help@echarts.apache.org