Labelers
struct · ferroui-livecharts · v0.5.0
struct Labelers
The labelers of the source (Labelers).
Members
six_representative_digits
fn six_representative_digits(value: f64) -> String
SixRepresentativeDigits (the source's default labeler, Log10_6): up to seven decimals,
a value of a million or more in millions (M), a value of a millionth or less in
millionths (µ).
format_currency
fn format_currency(value: f64, thousands: &str, decimals: &str, symbol: &str) -> String
FormatCurrency: the value in quadrillions (Q), trillions (T), billions (B) or
millions (M) from a million on, with the symbol, digit groups of three and up to two
decimals ({symbol}#,###,##0.## {unit}).
currency
fn currency(value: f64) -> String
Currency: format_currency with ,, . and the currency symbol
of the current culture.
build_named_labeler
fn build_named_labeler(labels: Vec<String>) -> Labeler
BuildNamedLabeler: the label at the index of a value (its integer part); an index out of
range has an empty label.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnyClassDefaultsErasedDestructorIntoEither
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.