# ChartLayout

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-controls-charts/struct-chartlayout/

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

```rust
struct ChartLayout
```

A read-only snapshot of calculated chart geometry, useful for diagnostics,
custom interactions and deterministic layout tests.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Charts/rendering.rs#L37)

## Members

- [`size`](#struct_field-size)
- [`plot_area`](#struct_field-plot_area)
- [`points`](#struct_field-points)
- [`legend_items`](#struct_field-legend_items)
- [`axis_labels`](#struct_field-axis_labels)
- [`data_labels`](#struct_field-data_labels)
- [`path_vertex_count`](#struct_field-path_vertex_count)

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

### size

```rust
size: ferroui_base::Size
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Charts/rendering.rs#L38)

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

### plot_area

```rust
plot_area: ferroui_base::Rect
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Charts/rendering.rs#L39)

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

### points

```rust
points: Vec<ChartPoint>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Charts/rendering.rs#L40)

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

### legend_items

```rust
legend_items: Vec<String>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Charts/rendering.rs#L41)

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

### axis_labels

```rust
axis_labels: Vec<String>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Charts/rendering.rs#L42)

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

### data_labels

```rust
data_labels: Vec<(usize, usize, String)>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Charts/rendering.rs#L43)

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

### path_vertex_count

```rust
path_vertex_count: usize
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls.Charts/rendering.rs#L44)

## 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`

## Availability

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