You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@echarts.apache.org by Manahil Afzal <ma...@gmail.com> on 2026/01/09 19:24:43 UTC
Left-aligned Sankey nodes not vertically centered in charts
Hello Ovilia,
I am testing the left-aligned Sankey chart and noticed that the *leftmost
nodes are not vertically centered* in the container. I tried opening
sankey.html locally, but the chart rendering I see in the HTML file does
not match the screenshots in the issue .
I have a few questions:
1.
Which file or example should I use to properly reproduce the issue —
sankey.html, another demo, or a specific example in the repository?
2.
When testing locally, are there specific build steps or dependencies I
should include to see the exact layout behavior?
3.
For vertically centering left-aligned nodes, would it be correct to
apply a vertical offset in initializeNodeDepth() or is there another
preferred method?
I am happy to provide a small reproduction if it helps clarify the problem.
Thank you for Time!
Re: Left-aligned Sankey nodes not vertically centered in charts
Posted by Ovilia <ov...@gmail.com>.
Hi,
Do you mean the demo at
https://echarts.apache.org/examples/zh/editor.html?c=sankey-nodeAlign-left
? Can you be more specific about how it's not vertically centered? Maybe by
providing an image to illustrate.
You need to clone https://github.com/apache/echarts-examples to run it
locally but maybe you don't have to. You may provide the above image before
you do so.
I'm not sure about what's wrong so I can't answer the other questions.
Thanks
*Ovilia*
On Sat, Jan 10, 2026 at 3:25 AM Manahil Afzal <ma...@gmail.com>
wrote:
> Hello Ovilia,
>
> I am testing the left-aligned Sankey chart and noticed that the *leftmost
> nodes are not vertically centered* in the container. I tried opening
> sankey.html locally, but the chart rendering I see in the HTML file does
> not match the screenshots in the issue .
>
> I have a few questions:
>
> 1.
>
> Which file or example should I use to properly reproduce the issue —
> sankey.html, another demo, or a specific example in the repository?
> 2.
>
> When testing locally, are there specific build steps or dependencies I
> should include to see the exact layout behavior?
> 3.
>
> For vertically centering left-aligned nodes, would it be correct to
> apply a vertical offset in initializeNodeDepth() or is there another
> preferred method?
>
> I am happy to provide a small reproduction if it helps clarify the problem.
>
> Thank you for Time!
>