Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Ability to exponentially scale the size of a node in Sankey charts #20698

Open
KurtGokhan opened this issue Jan 17, 2025 · 3 comments
Labels
en This issue is in English new-feature pending We are not sure about whether this is a bug/new feature.

Comments

@KurtGokhan
Copy link

KurtGokhan commented Jan 17, 2025

What problem does this feature solve?

Imagine a Sankey chart like this where the value of a node is disproportionally bigger than other nodes.

Image

The chart looks accurate but it is not useful to see the relative differences between nodes. A more useful way to show this data would be to scale the data exponentially and render it like that:

Image

What does the proposed API look like?

The Sankey series should support exponent: number option and its default value should be 1. It should exponentiate all values with this number before calculating the layout.

@echarts-bot echarts-bot bot added en This issue is in English pending We are not sure about whether this is a bug/new feature. labels Jan 17, 2025
@KurtGokhan KurtGokhan changed the title [Feature] Ability to logarithmically scale the size of a node in Sankey charts [Feature] Ability to exponentially scale the size of a node in Sankey charts Jan 17, 2025
@helgasoft
Copy link

Your solution is great and it will take one line of data pre-processing code - Demo.
So I doubt developers will be interested to add an extra parameter.

@KurtGokhan
Copy link
Author

Yes but then you have to handle tooltips and possibly other interactions in a custom way. I am asking for a way to change the layout of the chart, without changing the semantics.

@helgasoft
Copy link

True about custom tooltip - and that's all I see as necessary customization - Demo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
en This issue is in English new-feature pending We are not sure about whether this is a bug/new feature.
Projects
None yet
Development

No branches or pull requests

2 participants