微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

Python Dash-Cytoscape 节点饼图切片标签

如何解决Python Dash-Cytoscape 节点饼图切片标签

我是 Python 中的 dash-cytoscape 的新手,我正在尝试对节点 (https://github.com/plotly/dash-cytoscape/blob/master/demos/usage-pie-style.py) 使用饼图样式功能

有谁知道我们是否可以为每个馅饼切片添加标签,如下图所示?

Sample Pie-chart Picture

我怀疑会有一些像 'pie-1-text':'ABC' 或 'pie-1-label':'DEF' 这样的输入被添加到样式表中,但我找不到任何关于

stylesheet={
            'selector': 'node','style': {
                'width': '60px','height': '60px','content': 'data(id)','pie-size': '80%','pie-1-background-color': '#E8747C','pie-1-background-size': 'mapData(foo,10,100)','pie-2-background-color': '#74CBE8','pie-2-background-size': 'mapData(bar,'pie-3-background-color': '#74E883','pie-3-background-size': 'mapData(baz,100)'
            }}

谢谢大家!

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。