Comments (4)
- 用 JsCode 回调看一下差别?
from pyecharts.
- 用 JsCode 回调看一下差别?
试了一下直接返回全部值,没有看到value相关的信息,但是在tooltip里面又能看得见具体的数值。
from pyecharts.
@BpointA 试下这个代码
nodes = [
{"name": "category1"},
{"name": "category2"},
{"name": "category3"},
{"name": "category4"},
{"name": "category5"},
{"name": "category6"},
]
links = [
{"source": "category1", "target": "category2", "value": 10},
{"source": "category2", "target": "category3", "value": 15},
{"source": "category3", "target": "category4", "value": 20},
{"source": "category5", "target": "category6", "value": 25},
]
c = (
Sankey()
.add(
"sankey",
nodes,
links,
edge_label_opt=opts.LabelOpts(is_show=True),
linestyle_opt=opts.LineStyleOpts(opacity=0.2, curve=0.5, color="source"),
label_opts=opts.LabelOpts(position="right"),
)
.set_global_opts(title_opts=opts.TitleOpts(title="Sankey-基本示例"))
)
from pyecharts.
@BpointA 试下这个代码
nodes = [ {"name": "category1"}, {"name": "category2"}, {"name": "category3"}, {"name": "category4"}, {"name": "category5"}, {"name": "category6"}, ] links = [ {"source": "category1", "target": "category2", "value": 10}, {"source": "category2", "target": "category3", "value": 15}, {"source": "category3", "target": "category4", "value": 20}, {"source": "category5", "target": "category6", "value": 25}, ] c = ( Sankey() .add( "sankey", nodes, links, edge_label_opt=opts.LabelOpts(is_show=True), linestyle_opt=opts.LineStyleOpts(opacity=0.2, curve=0.5, color="source"), label_opts=opts.LabelOpts(position="right"), ) .set_global_opts(title_opts=opts.TitleOpts(title="Sankey-基本示例")) )
可以了,感谢!
我排查了一下,是我在label_opt中设置了格式={b},去掉之后就好了。
from pyecharts.
Related Issues (20)
- 使用前后端分离功能时geo和map的地图总是无法正常显示 HOT 1
- Feature Request: Offline Support for Pyecharts HOT 1
- Feautre request: Time support to stacked bar plots? HOT 1
- pyecharts.map可视化时如何向提示框中添加多组数据? HOT 1
- 使用自己构建的主题时,仅颜色等属性生效,坐标轴、线型等均无法正常显示
- 使用自己构建的主题时,线型、平滑等样式无效 HOT 7
- How to set bubble marker on all bars in bar chart HOT 3
- script error when using 3D charts in Databricks notebook HOT 1
- 折线图在x轴有重复值的时候会导致折线错位 HOT 1
- 怎么让关系图连接线动起来 HOT 1
- Pyecharts not displaying in Jupyter Notebooks even though they do in Jupyter Lab HOT 3
- 能否直接通过一个option字典完成对图表的描述 HOT 1
- 无法修改地图的长宽比例 HOT 1
- Map或自定义多边形下钻 HOT 3
- 日历图设置name_map='cn'后,调用.render_notebook()仍然显示英文月份和星期 HOT 5
- class ParallelItem is missing from pyecharts.opts HOT 1
- geo生成的html显示纬度数据而非指定数据 HOT 4
- 桑基图中edge_label_opt属性设置文字位置失效 HOT 2
- 3d曲面图放在时间轴里无法显示 HOT 1
- pyecharts支持自定义图吗 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyecharts.