Skip to main content

calculate_dot_interval

Function calculate_dot_interval 

Source
pub fn calculate_dot_interval(bar_spacing: f32) -> usize
Expand description

Calculate dynamic dot interval based on bar spacing (zoom level).

Ensures dots are spaced roughly 60-80 pixels apart to reduce visual noise when zoomed out, while showing more dots when zoomed in.