Skip to content

Conversation

@Manahil-Afzal
Copy link
Contributor

@Manahil-Afzal Manahil-Afzal commented Feb 10, 2026

Issue: 21271

Background:
While reviewing the Sankey diagram alignment discussed in the issue,
I explored how vertical centering affects the visual consistency between the example page and its thumbnail preview.

Before sankey:
Full size sankey
sankey-itemstyle (18).html

before sankey

centered sankey :
centered full size sankey
sankey-itemstyle (19).html

centered sankey

If the Sankey nodes are forced to be exactly centered in the page, it creates two problems:
=> The layout does not match the thumbnail image preview.
=> Visual consistency between the example gallery thumbnail and the opened chart view is lost.
Because of this mismatch, strict page-level centering may not provide the best user experience.

Thumbnail matches sankey:
sankey matches with thumbnail

This update keeps the Sankey alignment behavior that:
=> Matches the thumbnail preview more accurately
=> Maintains visual consistency across the examples gallery
=> Avoids unnecessary forced centering that could break expected layout appearance

Thumbnail according Sankey matches with last one images as u can clear see
For the Sankey example context, this approach provides a more practical and visually aligned result than strict page centering.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant