FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    Axis

    struct · ferroui-livecharts · v0.5.0

    struct Axis
    

    View source

    Members

    name

    name: String
    

    Source

    labels

    labels: Vec<String>
    

    Source

    min_limit

    min_limit: Option<f64>
    

    Source

    max_limit

    max_limit: Option<f64>
    

    Source

    min_step

    min_step: f64
    

    Source

    min_separators

    min_separators: u32
    

    Source

    force_step

    force_step: bool
    

    Source

    unit_width

    unit_width: f64
    

    Source

    inverted

    inverted: bool
    

    Source

    visible

    visible: bool
    

    Source

    show_separator_lines

    show_separator_lines: bool
    

    Source

    position

    position: AxisPosition
    

    Source

    text_size

    text_size: f64
    

    Source

    labels_rotation

    labels_rotation: f64
    

    Source

    labels_density

    labels_density: f64
    

    Source

    labels_angle

    labels_angle: f64
    

    Absolute angular position, in degrees, of radial-axis labels.

    Source

    custom_separators

    custom_separators: Vec<f64>
    

    Explicit axis separators; an empty list uses automatically calculated ticks.

    Source

    labels_padding

    labels_padding: Option<f64>
    

    Padding around each label, in FerroUI logical pixels. None takes the default of the chart family: CARTESIAN_LABELS_PADDING (the source theme's Padding of Cartesian axes) or POLAR_LABELS_PADDING (the LabelsPadding of a source polar axis).

    Source

    labels_color

    labels_color: ferroui_base::media::Color
    

    Source

    separators_color

    separators_color: ferroui_base::media::Color
    

    Source

    logarithmic_base

    logarithmic_base: Option<f64>
    

    Source

    padding

    padding: f64
    

    Source

    labeler

    labeler: Option<crate::labelers::Labeler>
    

    The label of a value (Labeler); None takes the native number format. The labels win over it, as in the source's GetActualLabeler.

    Source

    labels_background

    labels_background: Option<ferroui_base::media::Color>
    

    The background of the labels of a polar axis (LabelsBackground); None takes the source's white (POLAR_LABELS_BACKGROUND) and a transparent colour draws none.

    Source

    date_time

    fn date_time(unit: SignedDuration, formatter: impl Fn(DateTime) -> String + 'static) -> Self
    

    A DateTimeAxis: its unit width and minimum step are the ticks of unit, and it labels the date of a value (AsDate) with formatter.

    Source

    time_span

    fn time_span(unit: SignedDuration, formatter: impl Fn(SignedDuration) -> String + 'static) -> Self
    

    A TimeSpanAxis: its unit width and minimum step are the ticks of unit, and it labels the interval of a value (AsTimeSpan) with formatter.

    Source

    labels_padding_or

    fn labels_padding_or(self: &Self, default: f64) -> f64
    

    The label padding, or the given family default when none is set.

    Source

    tick

    fn tick(self: &Self, size: Size, orientation: AxisOrientation, labels: Size, min: f64, max: f64) -> AxisTick
    

    Extensions.GetTick of a Cartesian axis: the nice step for the given bounds (the axis limits win over them) in a control of the given size, with the label size measured by the host. Zero-width bounds take 15% of the maximum as their range, as the source does.

    Source

    label

    fn label(self: &Self, value: f64) -> String
    

    Source

    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
    • AnyValue
    • ClassDefaults
    • ErasedDestructor
    • IntoEither
    • Clone
    • Debug
    • StructuralPartialEq
    • PartialEq
    • Default

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.