Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
使用 Vis.js,我正在尝试创建一个显示节点集合的网络图。每个节点都是盒子形状的,里面有一些文本。我想在文本之外添加一个小的彩色圆圈,这将改变它的颜色取决于提供的数据。
在 Vis 中是否可以实现这样的功能,如果可以,我该如何实现?
不能在框内添加点之类的东西,只能显示纯文本。
您可以为框和文本本身指定自定义颜色,也可以为节点指定形状dot(文本随后显示在节点下方),并为节点指定特定颜色。
dot
示例:http: //visjs.org/examples/network/06_groups.html