Avoid `attempt to divide by zero` when x-axis is datetime by komi1230 · Pull Request #279 · plotters-rs/plotters
When we use datetime type for x-axis and the data is in the same week, this crate crashes with saying panicked at 'attempt to divide by zero'. This is caused by the calculation of the numbe...