Adding item_style support in SankeyNode using builder pattern:
let mut labels: Vec<SankeyNode> = vec![];
let label = "foo";
let my_style = ItemStyle::new().color("red").border_color("black");
let sn = SankeyNode::new(label).item_style(my_style);
labels.push(sn);
This way one can override the echarts sankey colors for nodes and organize the coloring!
let chart = Chart::new().series(
Sankey::new()
.layout_iterations(0u64)
.links(sankey_links)
.data(labels)
);
Adding item_style support in SankeyNode using builder pattern:
This way one can override the echarts sankey colors for nodes and organize the coloring!
Note, this includes https://github.com/yuankunzhang/charming/pull/29
This is similar to:
https://echarts.apache.org/examples/en/editor.html?c=sankey-simple&lang=ts&version=5.4.4-dev.20231111&decal=1