Expand description
Public value and label formatting helpers.
format_value renders a single data Value the way ggplot-rs shows it
in hover tooltips (rounded numbers, calendar dates for datetimes). The
label_* axis/legend formatters from crate::scale::format are
re-exported here so hosts can format numbers consistently with the plot.
Re-exports§
pub use crate::scale::format::label_bytes;pub use crate::scale::format::label_comma;pub use crate::scale::format::label_currency;pub use crate::scale::format::label_dollar;pub use crate::scale::format::label_number;pub use crate::scale::format::label_ordinal;pub use crate::scale::format::label_percent;pub use crate::scale::format::label_scientific;pub use crate::scale::format::label_si;pub use crate::scale::format::LabelFormatter;
Functions§
- format_
value - Format one data value for display (tooltips, data labels):