AxisScale
struct · ferroui-livecharts · v0.5.0
struct AxisScale
Members
minmaxpixel_startpixel_endlogarithmic_basenewto_pixelsto_chart_valuestickstick_with_metricsticks_with_metrics
min
min: f64
max
max: f64
pixel_start
pixel_start: f64
pixel_end
pixel_end: f64
logarithmic_base
logarithmic_base: Option<f64>
new
fn new(axis: &Axis, min: f64, max: f64, pixel_start: f64, pixel_end: f64) -> Result<Self, ChartError>
to_pixels
fn to_pixels(self: Self, value: f64) -> f64
to_chart_values
fn to_chart_values(self: Self, pixel: f64) -> f64
ticks
fn ticks(self: Self, axis: &Axis, pixel_length: f64) -> Vec<f64>
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.
ticks_with_metrics
fn ticks_with_metrics(self: Self, axis: &Axis, size: Size, orientation: AxisOrientation, labels: Size) -> Vec<f64>
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedPropertyValueAnyValueClassDefaultsErasedDestructorIntoEitherCloneCopyDebugStructuralPartialEqPartialEq
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.