CartesianSeries
struct · ferroui-controls-charts · v0.5.0
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.
Members
TYPEto_reftitle_propertyis_visible_propertyx_values_propertyy_values_propertystroke_propertystroke_thickness_propertystroke_dash_style_propertyshow_data_labels_propertyshow_data_markers_propertymarker_shape_propertydata_label_brush_propertydata_marker_brush_propertyx_axis_propertyy_axis_propertyconstructtitleset_titleset_optional_titleis_visibleset_is_visiblex_valuesset_x_valuesy_valuesset_y_valuesstrokeset_strokestroke_thicknessset_stroke_thicknessstroke_dash_styleset_stroke_dash_styleshow_data_labelsset_show_data_labelsshow_data_markersset_show_data_markersmarker_shapeset_marker_shapedata_label_brushset_data_label_brushdata_marker_brushset_data_marker_brushx_axisy_axisset_x_axisset_y_axisdata_label_overridesdata_marker_overrideseffective_stroke_thickness
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<CartesianSeries>
Returns a strong reference to this object.
title_property
fn title_property() -> &'static StyledProperty<String>
is_visible_property
fn is_visible_property() -> &'static StyledProperty<bool>
x_values_property
fn x_values_property() -> &'static StyledProperty<Option<Ref<Samples>>>
y_values_property
fn y_values_property() -> &'static StyledProperty<Option<Ref<Samples>>>
stroke_property
fn stroke_property() -> &'static StyledProperty<Option<Rc<dyn IBrush>>>
stroke_thickness_property
fn stroke_thickness_property() -> &'static StyledProperty<f64>
stroke_dash_style_property
fn stroke_dash_style_property() -> &'static StyledProperty<StrokeDashStyle>
show_data_labels_property
fn show_data_labels_property() -> &'static StyledProperty<bool>
show_data_markers_property
fn show_data_markers_property() -> &'static StyledProperty<bool>
marker_shape_property
fn marker_shape_property() -> &'static StyledProperty<MarkerShape>
data_label_brush_property
fn data_label_brush_property() -> &'static StyledProperty<Option<Rc<dyn IBrush>>>
data_marker_brush_property
fn data_marker_brush_property() -> &'static StyledProperty<Option<Rc<dyn IBrush>>>
x_axis_property
fn x_axis_property() -> &'static DirectProperty<CartesianSeries, Option<Ref<Axis>>>
Native direct-property notification for the source API's plain XAxis property.
y_axis_property
fn y_axis_property() -> &'static DirectProperty<CartesianSeries, Option<Ref<Axis>>>
Native direct-property notification for the source API's plain YAxis property.
construct
fn construct() -> Self
Creates base data for a concrete series class.
title
fn title(self: &Self) -> String
set_title
fn set_title(self: &Self, value: impl Into<String>)
set_optional_title
fn set_optional_title(self: &Self, value: Option<&str>)
is_visible
fn is_visible(self: &Self) -> bool
set_is_visible
fn set_is_visible(self: &Self, value: bool)
x_values
fn x_values(self: &Self) -> Option<Ref<Samples>>
set_x_values
fn set_x_values(self: &Self, value: Option<Ref<Samples>>)
y_values
fn y_values(self: &Self) -> Option<Ref<Samples>>
set_y_values
fn set_y_values(self: &Self, value: Option<Ref<Samples>>)
stroke
fn stroke(self: &Self) -> Option<Rc<dyn IBrush>>
set_stroke
fn set_stroke(self: &Self, value: Option<Rc<dyn IBrush>>)
stroke_thickness
fn stroke_thickness(self: &Self) -> f64
set_stroke_thickness
fn set_stroke_thickness(self: &Self, value: f64)
stroke_dash_style
fn stroke_dash_style(self: &Self) -> StrokeDashStyle
set_stroke_dash_style
fn set_stroke_dash_style(self: &Self, value: StrokeDashStyle)
show_data_labels
fn show_data_labels(self: &Self) -> bool
set_show_data_labels
fn set_show_data_labels(self: &Self, value: bool)
show_data_markers
fn show_data_markers(self: &Self) -> bool
set_show_data_markers
fn set_show_data_markers(self: &Self, value: bool)
marker_shape
fn marker_shape(self: &Self) -> MarkerShape
set_marker_shape
fn set_marker_shape(self: &Self, value: MarkerShape)
data_label_brush
fn data_label_brush(self: &Self) -> Option<Rc<dyn IBrush>>
set_data_label_brush
fn set_data_label_brush(self: &Self, value: Option<Rc<dyn IBrush>>)
data_marker_brush
fn data_marker_brush(self: &Self) -> Option<Rc<dyn IBrush>>
set_data_marker_brush
fn set_data_marker_brush(self: &Self, value: Option<Rc<dyn IBrush>>)
x_axis
fn x_axis(self: &Self) -> Option<Ref<Axis>>
y_axis
fn y_axis(self: &Self) -> Option<Ref<Axis>>
set_x_axis
fn set_x_axis(self: &Self, value: Option<Ref<Axis>>) -> Result<(), ChartError>
Set the category/time data axis, preserving the old value on failure.
set_y_axis
fn set_y_axis(self: &Self, value: Option<Ref<Axis>>) -> Result<(), ChartError>
Set the numeric value axis, preserving the old value on failure.
data_label_overrides
fn data_label_overrides(self: &Self) -> FerroDictionary<u32, Rc<DataLabelOverride>>
Per-source-index immutable label overrides; clones share map identity.
data_marker_overrides
fn data_marker_overrides(self: &Self) -> FerroDictionary<u32, Rc<DataMarkerOverride>>
Per-source-index immutable marker overrides; clones share map identity.
effective_stroke_thickness
fn effective_stroke_thickness(self: &Self) -> f64
An invalid public thickness is retained, but never passed to a renderer.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyFerroObjectImplExtClassDefaultsErasedDestructorIntoEitherDerefUpcast<T>Upcast<CartesianSeries>StaticTypeObjectTypeSubclassable<T>FerroObjectImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.