# SankeyChartEngine

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-livecharts/sankey_chart_engine/struct-sankeychartengine/

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

```rust
struct SankeyChartEngine
```



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

## Members

- [`measure`](#function-measure)
- [`measure_with_labels`](#function-measure_with_labels)

<a id="function-measure"></a>

### measure

```rust
fn measure(size: Size, series: &[SankeySeries], options: &SankeyOptions) -> Result<Scene, ChartError>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.LiveCharts/sankey_chart_engine.rs#L647)

<a id="function-measure_with_labels"></a>

### measure_with_labels

```rust
fn measure_with_labels(size: Size, series: &[SankeySeries], options: &SankeyOptions, measure_text: impl FnMut(&str, f64) -> Size) -> Result<Scene, ChartError>
```

Native hosts supply their text metrics here, so that the room reserved for the labels
fits the typeface that draws them. Every series takes the whole draw margin, as in the
source.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.LiveCharts/sankey_chart_engine.rs#L660)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `ErasedDestructor`
- `IntoEither`

## Availability

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