pub fn format_value(value: f64, format_str: Option<&str>) -> StringExpand description
Format a numeric value using a d3-format string, or a sensible default.
When format_str is Some, delegates to NumberFormatter. When None,
uses default_format_value which applies comma separators for integers
and minimal-precision formatting for floats.