nowthis / sankeymatic

Make Beautiful Flow Diagrams
http://sankeymatic.com/build/
ISC License
841 stars 122 forks source link

Tag and text #35

Open Nemecsek opened 6 years ago

Nemecsek commented 6 years ago

Now each node has a tag used as link reference: Node1 [100] Node2

Node1 and Node2 are shown on the plot.

But what is I want to read something else on the graph, instead of the node tag?

I would like, for example, to be able to set the nodes as:

Node1 [100] Node2

:Node1 $text_to_show_for_node1
:Node2 $text_to_show_for_node2

It would even be nice if text could be multiline, with the first line always bold, and the following lines normal. This would allow to show any kind of parameters/values associated to the node (first line being the id we chose, and the following lines the values). A markup language to define the text to show would make everything very flexible.

Or is there a workaround I didn't think about?

nplatis commented 1 year ago

I agree that this would be a useful feature. In some cases, nodes may have the same text (most probably, in different columns), which is currently not possible (I think).