FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    AxisScale

    struct · ferroui-livecharts · v0.5.0

    struct AxisScale
    

    View source

    Members

    min

    min: f64
    

    Source

    max

    max: f64
    

    Source

    pixel_start

    pixel_start: f64
    

    Source

    pixel_end

    pixel_end: f64
    

    Source

    logarithmic_base

    logarithmic_base: Option<f64>
    

    Source

    new

    fn new(axis: &Axis, min: f64, max: f64, pixel_start: f64, pixel_end: f64) -> Result<Self, ChartError>
    

    Source

    to_pixels

    fn to_pixels(self: Self, value: f64) -> f64
    

    Source

    to_chart_values

    fn to_chart_values(self: Self, pixel: f64) -> f64
    

    Source

    ticks

    fn ticks(self: Self, axis: &Axis, pixel_length: f64) -> Vec<f64>
    

    Source

    tick_with_metrics

    fn tick_with_metrics(self: Self, axis: &Axis, size: Size, orientation: AxisOrientation, labels: Size) -> AxisTick
    

    Source tick calculation using actual native font measurements.

    Source

    ticks_with_metrics

    fn ticks_with_metrics(self: Self, axis: &Axis, size: Size, orientation: AxisOrientation, labels: Size) -> Vec<f64>
    

    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
    • Copy
    • Debug
    • StructuralPartialEq
    • PartialEq

    Availability

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