# TreemapSeries

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-livecharts/treemap_chart_engine/struct-treemapseries/

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

```rust
struct TreemapSeries
```

A treemap series: the paints, padding (`Padding`, 2 by default), corner radius and data labels
of its [`Series`](/docs/0.5.0/api/ferroui-livecharts/series/struct-series/), and its root nodes (the source's `Values`).

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

## Members

- [`series`](#struct_field-series)
- [`nodes`](#struct_field-nodes)
- [`new`](#function-new)
- [`total_weight`](#function-total_weight)

<a id="struct_field-series"></a>

### series

```rust
series: crate::series::Series
```



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

<a id="struct_field-nodes"></a>

### nodes

```rust
nodes: Vec<TreemapNode>
```



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

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

### new

```rust
fn new(nodes: Vec<TreemapNode>) -> Self
```



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

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

### total_weight

```rust
fn total_weight(self: &Self) -> f64
```

The sum of the resolved weights of the roots (`GetTotalWeight`), which partitions the draw
margin between the series.

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

## Trait implementations

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

## Availability

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