Skip to main content

YFormat

Type Alias YFormat 

Source
pub type YFormat = Arc<dyn Fn(f64) -> String + Send + Sync>;
Expand description

Formats a y-axis tick value into its display label. When unset the chart renders a plain number. Provide one to label the axis in real units — durations, bytes, percentages — so a raw 6000000 reads as 1h 40m instead.

Aliased Type§

pub struct YFormat { /* private fields */ }