Closed terence1984 closed 4 years ago
@terence1984 先上Demo的截图
不知道你是不是要的这种效果,这里我就是做的路径分析的一个Demo 实现效果需要明确两点。
你好,sankey 在绘制的时候,为了减少节点之间的遮盖以及整个视图的美观,将没有出边的叶子节点都调整到最后一层。这样处理在某些数据场景的确不太合适,后续会调整一下布局,并增加一些配置项。
Sankey Diagram Generator, 这个问题这几天又在纠结,去年就因为这个问题echarts搞不定最后投靠D3解决的,参考的是这里,这里layer
的概念好像就能很好的解决这个问题。
谢谢建议,这个布局问题,我后续会慢慢调整优化的,争取提供全面灵活的方式。
祝好, 德清
@deqingli 请问下这个有结论吗?
@deqingli 请问该功能有进展吗?最近刚好遇到相关的需求~
@CapDuan @DoranYun @SuperAL 最近正在开发这个功能,预计下个版本会上
@deqingli 你好想问下这个需要设置什么么。为什么我升级到最新版本它还是每个路径的最后一个都显示在最后一个层级上。
请问这个功能什么时候会上呢?最近也遇到相应的需求 @deqingli 目前我是直接修改了sankeyLayout 源码来实现这个需求的
@CapDuan @DoranYun @SuperAL 最近正在开发这个功能,预计下个版本会上
问下有发布的时间预期吗?
@All, I have accomplished this feature which will be released in 4.3.0.
You can specify the depth
of each node with the following way:
nodes: [{'name': 'A', 'depth': 0}, ......]
Here the depth
works the same way as layer
in Sankey Diagram Generator @CapDuan.
Also if you don't like all the leaves node is on the last depth, we provide the attribute nodeAlign
in Sankey.series like the following:
series: [{
// which can 'justify' or 'right', the default value is 'justify'.
nodeAlign: 'left'
}]
Which decide the alignment of the node.
@ALL,我已经完成了这个将在4.3.0中发布的功能。
指定每个节点的深度
您可以使用
depth
以下方式指定每个节点:节点: [{ ' name ': ' A ',' depth ': 0 },...... ]
这里的
depth
工作方式相同layer
的热平衡图发电机 @CapDuan。指定节点的对齐方式
此外,如果您不喜欢所有叶节点都在最后一个深度,我们
nodeAlign
在Sankey.series中提供如下属性:series : [{ // 可以'对齐'或'对',默认值是'对齐'。 nodeAlign : ' left ' }]
这决定了节点的对齐方式。
什么时候发布啊,4.2里面的depth好像没任何作用
@ALL, I have accomplished this feature which will be released in 4.3.0.
Specify depth for each node
You can specify the
depth
of each node with the following way:nodes: [{'name': 'A', 'depth': 0}, ......]
Here the
depth
works the same way aslayer
in Sankey Diagram Generator @CapDuan.Specify the alignment of node
Also if you don't like all the leaves node is on the last depth, we provide the attribute
nodeAlign
in Sankey.series like the following:series: [{ // which can 'justify' or 'right', the default value is 'justify'. nodeAlign: 'left' }]
Which decide the alignment of the node.
4.2.1加了depth好像无效啊 可以问下4.3版本什么时候发布嘛
@ALL, I have accomplished this feature which will be released in 4.3.0.
Specify depth for each node
You can specify the
depth
of each node with the following way:nodes: [{'name': 'A', 'depth': 0}, ......]
Here the
depth
works the same way aslayer
in Sankey Diagram Generator @CapDuan.Specify the alignment of node
Also if you don't like all the leaves node is on the last depth, we provide the attribute
nodeAlign
in Sankey.series like the following:series: [{ // which can 'justify' or 'right', the default value is 'justify'. nodeAlign: 'left' }]
Which decide the alignment of the node.
麻烦问下4.3.0什么时候发布?
Hi all, this feature released in version 4.4.0, I am so sorry about it. Please try it.
怎么解决 点击最后一层节点时,之前的路径全高亮显示的问题的?
@terence1984 怎么解决 点击最后一层节点时,之前的路径全高亮显示的问题的?
@deqingli 怎么解决 点击最后一层节点时,之前的路径全高亮显示的问题的?
@deqingli 怎么解决 点击最后一层节点时,之前的路径全高亮显示的问题的?
怎么解决 点击最后一层节点时,之前的路径全高亮显示的问题的 这个问题你解决了吗
One-line summary [问题简述]
使用Echart的桑基图进行路径分析的可视化, 但是由于桑基图的规则,使每个路径的最后一页都显示在最后一个层级上,这样进行路径分析的可视化就不太匹配了。
Version & Environment [版本及环境]
Expected behaviour [期望结果]
可以指定每个node所在层级
ECharts option [ECharts配置项]
Other comments [其他信息]