使用谷歌图表Sankey Diagram,我想设置自己的节点位置:Sankey图的正常行为是从其他节点出现的每个节点必须在同一垂直线上对齐:< / p>
我的目标是复制这个Sankry Diagram:
如您所见,从同一个节点出现的节点不在同一级别上。
我的问题:
是否可以访问每个节点属性?根据谷歌在其教程中显示的内容,人们只能修改每个节点的行为:
var options = {
width: 600,
sankey: {
link: { color: { fill: '#d799ae', fillOpacity: 0.8 } },
node: { colors: [ '#a61d4c' ],
label: { color: '#871b47' } },
}
};
如果谷歌图表不可能,您是否知道另一个可以让我按照描述自定义图表的网络框架?
答案 0 :(得分:0)
Have a look at sankeybuilder.com and it's Node Lock feature. SankeyBuilder automatically creates Sankey diagrams from a .TAB separated file that you upload. You could then move Nodes to your desired look/layout and then save their positions. You can then load that diagram in the future or share it with other users via a unique URL. If the underlying data changes you can update the data without affecting the originally stored Node Positions. Optionally you can reset the diagram to the original layout; which allows you to try different Node positions.