Sankey Node Width
Sankey Node Width
Use this when: You need to widen Sankey node bars to emphasize nodes alongside flows.
Usage
from dataviz import save, sankey
def main() raises:
var from_categories: List[String] = [
"Visits",
"Visits",
"Signups",
"Signups",
]
var to_categories: List[String] = [
"Signups",
"Bounced",
"Purchased",
"Churned",
]
var values: List[Float64] = [420.0, 580.0, 260.0, 160.0]
var plot = sankey(
from_categories,
to_categories,
values,
node_width=28.0,
title="Funnel Flow",
)
save(plot, "docs/src/examples/out_sankey_node_width.svg")Related
Related recipes: Radial Bar Styling · Waterfall Colors
Relevant API: Theme · OutputFormat