# sankey_arc_layout

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-livecharts/sankey_chart_engine/function-sankey_arc_layout/

**function** · [`ferroui-livecharts`](/docs/0.5.0/api/ferroui-livecharts/) · v0.5.0

```rust
fn sankey_arc_layout(nodes: &[SankeyNode], links: &[SankeyLink], rect: ferroui_base::Rect, node_width: f64, node_padding: f64, arc_span_degrees: f64, label_margin: f64) -> Result<SankeyArcLayout, ChartError>
```

The bipartite arc layout (`SankeyLayout.ComputeBipartiteArc`): the sources on a left arc
centred at 180 degrees, the sinks on a right arc centred at 0, each node a sweep proportional
to its value, and the four chord ends of every link on the inner radius. `label_margin` is the
radial room reserved outside the arcs for the labels.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.LiveCharts/sankey_chart_engine.rs#L517)

## Availability

Extracted for `aarch64-apple-darwin`. Cargo features are listed in the [crate index](/docs/0.5.0/api/).
