diff --git a/app/javascript/controllers/time_series_chart_controller.js b/app/javascript/controllers/time_series_chart_controller.js index bcb1366e..750fceb1 100644 --- a/app/javascript/controllers/time_series_chart_controller.js +++ b/app/javascript/controllers/time_series_chart_controller.js @@ -62,7 +62,7 @@ export default class extends Controller { #draw() { - if (this.#dataPoints.length == 0) { + if (this.#dataPoints.length < 2) { this.#drawEmpty() } else if (this.#isFullChart) { this.#drawFullChart()