pub fn calculate_nice_ranges_separate_config<X, Y>(
bounds: &DataBounds<X, Y>,
x_config: RangeCalculationConfig,
y_config: RangeCalculationConfig,
) -> ((f32, f32), (f32, f32))Expand description
Calculate nice axis ranges with separate configurations for X and Y axes
This function allows different configurations for X and Y axes, which can be useful when the axes have different characteristics (e.g., time on X-axis, values on Y-axis).
§Arguments
bounds- Data bounds containing min/max for both X and Yx_config- Configuration for X-axis range calculationy_config- Configuration for Y-axis range calculation
§Returns
A tuple of ((x_min, x_max), (y_min, y_max)) representing nice ranges for both axes