# CartesianSeries

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

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

```rust
struct CartesianSeries
```

Shared property and data contract for line, area, and bar series.

Series are chart-owned, but their samples and immutable override descriptors
are shareable. Axis references use validated direct properties because their
validity depends on chart ownership as well as the axis' concrete type.

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

## Members

- [`TYPE`](#assoc_const-type)
- [`to_ref`](#function-to_ref)
- [`title_property`](#function-title_property)
- [`is_visible_property`](#function-is_visible_property)
- [`x_values_property`](#function-x_values_property)
- [`y_values_property`](#function-y_values_property)
- [`stroke_property`](#function-stroke_property)
- [`stroke_thickness_property`](#function-stroke_thickness_property)
- [`stroke_dash_style_property`](#function-stroke_dash_style_property)
- [`show_data_labels_property`](#function-show_data_labels_property)
- [`show_data_markers_property`](#function-show_data_markers_property)
- [`marker_shape_property`](#function-marker_shape_property)
- [`data_label_brush_property`](#function-data_label_brush_property)
- [`data_marker_brush_property`](#function-data_marker_brush_property)
- [`x_axis_property`](#function-x_axis_property)
- [`y_axis_property`](#function-y_axis_property)
- [`construct`](#function-construct)
- [`title`](#function-title)
- [`set_title`](#function-set_title)
- [`set_optional_title`](#function-set_optional_title)
- [`is_visible`](#function-is_visible)
- [`set_is_visible`](#function-set_is_visible)
- [`x_values`](#function-x_values)
- [`set_x_values`](#function-set_x_values)
- [`y_values`](#function-y_values)
- [`set_y_values`](#function-set_y_values)
- [`stroke`](#function-stroke)
- [`set_stroke`](#function-set_stroke)
- [`stroke_thickness`](#function-stroke_thickness)
- [`set_stroke_thickness`](#function-set_stroke_thickness)
- [`stroke_dash_style`](#function-stroke_dash_style)
- [`set_stroke_dash_style`](#function-set_stroke_dash_style)
- [`show_data_labels`](#function-show_data_labels)
- [`set_show_data_labels`](#function-set_show_data_labels)
- [`show_data_markers`](#function-show_data_markers)
- [`set_show_data_markers`](#function-set_show_data_markers)
- [`marker_shape`](#function-marker_shape)
- [`set_marker_shape`](#function-set_marker_shape)
- [`data_label_brush`](#function-data_label_brush)
- [`set_data_label_brush`](#function-set_data_label_brush)
- [`data_marker_brush`](#function-data_marker_brush)
- [`set_data_marker_brush`](#function-set_data_marker_brush)
- [`x_axis`](#function-x_axis)
- [`y_axis`](#function-y_axis)
- [`set_x_axis`](#function-set_x_axis)
- [`set_y_axis`](#function-set_y_axis)
- [`data_label_overrides`](#function-data_label_overrides)
- [`data_marker_overrides`](#function-data_marker_overrides)
- [`effective_stroke_thickness`](#function-effective_stroke_thickness)

<a id="assoc_const-type"></a>

### TYPE

```rust
const TYPE: &'static $crate::TypeInfo
```

The runtime type of this class.

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

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

### to_ref

```rust
fn to_ref(self: &Self) -> $crate::Ref<CartesianSeries>
```

Returns a strong reference to this object.

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

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

### title_property

```rust
fn title_property() -> &'static StyledProperty<String>
```



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

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

### is_visible_property

```rust
fn is_visible_property() -> &'static StyledProperty<bool>
```



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

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

### x_values_property

```rust
fn x_values_property() -> &'static StyledProperty<Option<Ref<Samples>>>
```



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

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

### y_values_property

```rust
fn y_values_property() -> &'static StyledProperty<Option<Ref<Samples>>>
```



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

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

### stroke_property

```rust
fn stroke_property() -> &'static StyledProperty<Option<Rc<dyn IBrush>>>
```



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

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

### stroke_thickness_property

```rust
fn stroke_thickness_property() -> &'static StyledProperty<f64>
```



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

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

### stroke_dash_style_property

```rust
fn stroke_dash_style_property() -> &'static StyledProperty<StrokeDashStyle>
```



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

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

### show_data_labels_property

```rust
fn show_data_labels_property() -> &'static StyledProperty<bool>
```



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

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

### show_data_markers_property

```rust
fn show_data_markers_property() -> &'static StyledProperty<bool>
```



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

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

### marker_shape_property

```rust
fn marker_shape_property() -> &'static StyledProperty<MarkerShape>
```



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

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

### data_label_brush_property

```rust
fn data_label_brush_property() -> &'static StyledProperty<Option<Rc<dyn IBrush>>>
```



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

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

### data_marker_brush_property

```rust
fn data_marker_brush_property() -> &'static StyledProperty<Option<Rc<dyn IBrush>>>
```



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

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

### x_axis_property

```rust
fn x_axis_property() -> &'static DirectProperty<CartesianSeries, Option<Ref<Axis>>>
```

Native direct-property notification for the source API's plain XAxis property.

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

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

### y_axis_property

```rust
fn y_axis_property() -> &'static DirectProperty<CartesianSeries, Option<Ref<Axis>>>
```

Native direct-property notification for the source API's plain YAxis property.

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

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

### construct

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

Creates base data for a concrete series class.

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

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

### title

```rust
fn title(self: &Self) -> String
```



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

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

### set_title

```rust
fn set_title(self: &Self, value: impl Into<String>)
```



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

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

### set_optional_title

```rust
fn set_optional_title(self: &Self, value: Option<&str>)
```



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

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

### is_visible

```rust
fn is_visible(self: &Self) -> bool
```



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

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

### set_is_visible

```rust
fn set_is_visible(self: &Self, value: bool)
```



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

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

### x_values

```rust
fn x_values(self: &Self) -> Option<Ref<Samples>>
```



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

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

### set_x_values

```rust
fn set_x_values(self: &Self, value: Option<Ref<Samples>>)
```



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

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

### y_values

```rust
fn y_values(self: &Self) -> Option<Ref<Samples>>
```



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

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

### set_y_values

```rust
fn set_y_values(self: &Self, value: Option<Ref<Samples>>)
```



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

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

### stroke

```rust
fn stroke(self: &Self) -> Option<Rc<dyn IBrush>>
```



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

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

### set_stroke

```rust
fn set_stroke(self: &Self, value: Option<Rc<dyn IBrush>>)
```



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

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

### stroke_thickness

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



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

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

### set_stroke_thickness

```rust
fn set_stroke_thickness(self: &Self, value: f64)
```



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

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

### stroke_dash_style

```rust
fn stroke_dash_style(self: &Self) -> StrokeDashStyle
```



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

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

### set_stroke_dash_style

```rust
fn set_stroke_dash_style(self: &Self, value: StrokeDashStyle)
```



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

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

### show_data_labels

```rust
fn show_data_labels(self: &Self) -> bool
```



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

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

### set_show_data_labels

```rust
fn set_show_data_labels(self: &Self, value: bool)
```



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

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

### show_data_markers

```rust
fn show_data_markers(self: &Self) -> bool
```



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

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

### set_show_data_markers

```rust
fn set_show_data_markers(self: &Self, value: bool)
```



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

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

### marker_shape

```rust
fn marker_shape(self: &Self) -> MarkerShape
```



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

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

### set_marker_shape

```rust
fn set_marker_shape(self: &Self, value: MarkerShape)
```



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

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

### data_label_brush

```rust
fn data_label_brush(self: &Self) -> Option<Rc<dyn IBrush>>
```



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

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

### set_data_label_brush

```rust
fn set_data_label_brush(self: &Self, value: Option<Rc<dyn IBrush>>)
```



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

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

### data_marker_brush

```rust
fn data_marker_brush(self: &Self) -> Option<Rc<dyn IBrush>>
```



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

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

### set_data_marker_brush

```rust
fn set_data_marker_brush(self: &Self, value: Option<Rc<dyn IBrush>>)
```



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

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

### x_axis

```rust
fn x_axis(self: &Self) -> Option<Ref<Axis>>
```



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

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

### y_axis

```rust
fn y_axis(self: &Self) -> Option<Ref<Axis>>
```



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

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

### set_x_axis

```rust
fn set_x_axis(self: &Self, value: Option<Ref<Axis>>) -> Result<(), ChartError>
```

Set the category/time data axis, preserving the old value on failure.

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

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

### set_y_axis

```rust
fn set_y_axis(self: &Self, value: Option<Ref<Axis>>) -> Result<(), ChartError>
```

Set the numeric value axis, preserving the old value on failure.

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

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

### data_label_overrides

```rust
fn data_label_overrides(self: &Self) -> FerroDictionary<u32, Rc<DataLabelOverride>>
```

Per-source-index immutable label overrides; clones share map identity.

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

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

### data_marker_overrides

```rust
fn data_marker_overrides(self: &Self) -> FerroDictionary<u32, Rc<DataMarkerOverride>>
```

Per-source-index immutable marker overrides; clones share map identity.

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

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

### effective_stroke_thickness

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

An invalid public thickness is retained, but never passed to a renderer.

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

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- [`Receiver`](/docs/0.5.0/api/ferroui-system/task/oneshot/struct-receiver/)
- `Any`
- [`FerroObjectImplExt`](/docs/0.5.0/api/ferroui-base/trait-ferroobjectimplext/)
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `ErasedDestructor`
- `IntoEither`
- `Deref`
- [`Upcast<T>`](/docs/0.5.0/api/ferroui-base/trait-upcast/)
- [`Upcast<CartesianSeries>`](/docs/0.5.0/api/ferroui-base/trait-upcast/)
- [`StaticType`](/docs/0.5.0/api/ferroui-base/trait-statictype/)
- [`ObjectType`](/docs/0.5.0/api/ferroui-base/trait-objecttype/)
- [`Subclassable<T>`](/docs/0.5.0/api/ferroui-base/trait-subclassable/)
- [`FerroObjectImpl`](/docs/0.5.0/api/ferroui-base/trait-ferroobjectimpl/)

## Availability

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