Skip to content
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

突出显示选定的节点并使其他节点变灰 #79

Open
SeXyTeA-x opened this issue Jul 14, 2023 · 3 comments
Open

突出显示选定的节点并使其他节点变灰 #79

SeXyTeA-x opened this issue Jul 14, 2023 · 3 comments

Comments

@SeXyTeA-x
Copy link

你好,我想实现一个效果,即当我选择一个节点时,该节点及其邻居必须突出显示。同时,所有其他节点必须具有“灰色”效果。比如https://kenedict.com/networks/startups/这样的效果,请问有提供方法实现吗

@SeXyTeA-x
Copy link
Author

我看到了Class GraphEdgeSet中的update函数,这个函数具体是怎么使用的,api文档我并没有看明白,请问这个是可以用来更新某几条边的颜色的嘛

@HC-teemo
Copy link
Collaborator

The graph visualization of this project is implemented based on the Vis.js package, on which any features and functionality on the visualization are based.
本项目图可视化是基于Vis.js包实现的,任何可视化上的特性和功能都基于它。

@SeXyTeA-x
Copy link
Author

SeXyTeA-x commented Jul 27, 2023

请问有方法为每一条边设置颜色吗,我尝试在数据的json格式中这样操作,
{
"id": 1,
"label": "测试关系",
"from": 1,
"to": 2,
"color":{color:'black'}
},
但是不起作用

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants