# Stacker

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-livecharts/kernel/struct-stacker/

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

```rust
struct Stacker
```



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

## Members

- [`new`](#function-new)
- [`max_series_id`](#function-max_series_id)
- [`max_length`](#function-max_length)
- [`get_series_stack_position`](#function-get_series_stack_position)
- [`stack_point`](#function-stack_point)
- [`get_stack`](#function-get_stack)

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

### new

```rust
fn new() -> Self
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.LiveCharts/kernel/stacker.rs#L47)

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

### max_series_id

```rust
fn max_series_id(self: &Self) -> Option<usize>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.LiveCharts/kernel/stacker.rs#L50)

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

### max_length

```rust
fn max_length(self: &Self) -> usize
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.LiveCharts/kernel/stacker.rs#L53)

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

### get_series_stack_position

```rust
fn get_series_stack_position(self: &mut Self, series_id: usize) -> usize
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.LiveCharts/kernel/stacker.rs#L56)

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

### stack_point

```rust
fn stack_point(self: &mut Self, point: Coordinate, position: usize) -> Option<f64>
```

Appends to positive/negative bar tracks and the signed area track.
An unregistered stack position is rejected without indexing a missing row.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.LiveCharts/kernel/stacker.rs#L72)

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

### get_stack

```rust
fn get_stack(self: &Self, point: Coordinate, position: usize) -> StackedValue
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.LiveCharts/kernel/stacker.rs#L103)

## Trait implementations

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

## Availability

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