Skip to main content

format_bar_value

Function format_bar_value 

Source
pub fn format_bar_value(v: f64, integer: bool, format: &NumberFormat) -> String
Expand description

Format a bar’s value for the label beside it in format: an integer column’s whole, anything else to the format’s decimal places or two, so every bar shows the same number of them. Values too large, or too small to show in those places, go to scientific notation.