VisActor / VChart

VChart, more than just a cross-platform charting library, but also an expressive data storyteller.
https://www.visactor.io/vchart
MIT License
1.01k stars 72 forks source link

如何自定义桑基图link宽度? #3400

Closed lutian197 closed 3 days ago

lutian197 commented 1 week ago

桑基图垂直时,设置nodeHeight: 100,link宽度会自适应node宽度。如果自定义node.style.width,link宽度就不会自适应,如何设置link宽度在node宽度范围内呢?

xile611 commented 1 week ago

@lutian197 不要通过 node.style.width设置宽度,这样相当于不走桑基图算法,你自己指定的宽度