rawgraphs / rawgraphs-charts

A curated selection of charts provided through RAWGraphs interface
https://rawgraphs.io/
Apache License 2.0
95 stars 42 forks source link

Sankey Chart - Source Nodes order by given dataset. #145

Open LeonChenWenJia opened 11 months ago

LeonChenWenJia commented 11 months ago

In which part of the interface would this feature applies?

[ ] 1. Load your data [ ] 2. Choose a chart [ x ] 3. Mapping [ ] 4. Customize [ ] 5. Export

Is your feature request related to a problem? Please describe. I would like to request a simple feature for the sankey chart. The order of the source nodes is typically handled automatically (ordered by size). I would like to force it to order the nodes by the order given in the data.

Describe the solution you'd like For example, if the source nodes are months (Jan 2023, Feb 2023, Mar 2023, and so on), they are ordered by size instead of being ordered by chronologically. I would like to force the order to follow the order in the given dataset.

mikima commented 8 months ago

In Sankey Diagrams nodes are placed automatically according to the links. Are you maybe talking about alluvial diagrams? ion this second case i think it could be implemented even if it would require a rewriting of how data is handled interally