Open benoist opened 9 years ago
Might not be too hard, D3 has a really good Sankey plugin (Just used it, actually...).
Three questions:
nodes
and links
. Short of providing C3 with data already in that structure, how would the relational (i.e., node/link) format fit in with the columns
and rows
methods?Question 1 and 2 are valid questions. I think that this would be a good addition to the library. The benefit for me would be one less dependency, similar API to my other charts and same color configs.
My suggestion on how to use columns and rows would be:
Column 1: source label Column 2: target label Column 3: weight
[ ["node1", "node2", 50],
["node1, "node3", 50],
["node2, "node4", 100],
["node3, "node4", 25]]
Seems reasonable enough. If the plugin API ever comes to fruition, this would be a terrific candidate for that — all the benefit of the above, without adding any weight to the core library.
I agree that this is a better candidate for a plugin to C3
The plugin architecture is kind of in-progress at the moment; if you wish to contribute to that effort, we'd welcome the help! More info at #351.
Due to this relying on a working plugin infrastructure, I'm adding on hold
and closing until #351 is complete.
Reopening after discussion with @masayuki0812 re: how to handle on hold
issues.
Hi,
I would like to request Sankey Diagrams as a chart type.
Cheers, Benoist