pub fn resolution(values: &[Value]) -> f64
ggplot2’s resolution(x, zero = FALSE): the smallest positive gap between distinct finite values; 1 for integer-typed data, a single distinct value, or no numeric values at all.
resolution(x, zero = FALSE)