wayofwade edited a comment on issue #6365: Echart 桑基图内是否可以定义一个node显示的层级? URL: https://github.com/apache/incubator-echarts/issues/6365#issuecomment-524234100 > @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: > > ```js > nodes: [{'name': 'A', 'depth': 0}, ......] > ``` > > Here the `depth` works the same way as `layer` in [Sankey Diagram Generator](https://sankey.csaladen.es/) @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: > > ```js > 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版本什么时候发布嘛
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@echarts.apache.org For additional commands, e-mail: dev-h...@echarts.apache.org