yuzutech / kroki

Creates diagrams from textual descriptions!
https://kroki.io
MIT License
2.95k stars 222 forks source link

Feature request: support for sankey diagramms #1417

Open Barry1 opened 1 year ago

Barry1 commented 1 year ago

Maybe you know sankey diagrams - a nice way to visualize flows. Example sankey diagram There is already a textual syntax for describing such and it is even here https://github.com/nowthis/sankeymatic . The owner is @nowthis . The detailed syntax is described here http://sankeymatic.com/manual/syntax.html .

Another implementation is shown here. This one is realized by @d3 with the code in https://github.com/d3/d3-sankey.

You you please support it? Thanks in advance. (Reposted from now closed plantuml issue.)

wanghsinche commented 1 year ago

it is an awesome feature! if it supports it, I can use chatgpt to generate the earning report sankey diagram!

ggrossetie commented 1 year ago

I had some success with SankeyMATIC but the parsing/rendering code is currently coupled with the UI. I'm not sure if the maintainer is interested in creating a standalone parsing/rendering library (with the UI built on top).

If not, we will probably need to maintain a fork of this project.

ggrossetie commented 1 year ago

Upstream issue: https://github.com/nowthis/sankeymatic/issues/70

ggrossetie commented 1 year ago

For reference, the latest version of Mermaid supports Sankey diagrams: https://mermaid.js.org/syntax/sankey.html