diff --git a/src/chart_manager.rs b/src/chart_manager.rs index e75a2c7..7102832 100644 --- a/src/chart_manager.rs +++ b/src/chart_manager.rs @@ -124,9 +124,9 @@ impl ChartManager { // Applies `half_step` in order to make the bar graph display properly if output.0 > 0.0 { - output.0 = output.0 + half_step; + output.0 += half_step; } else { - output.0 = output.0 - half_step; + output.0 -= half_step; } output