1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-07-27 17:19:39 +02:00

Draw empty time series chart if less than 2 data points

This commit is contained in:
Jose Farias 2024-04-19 19:05:27 -06:00
parent 57eebbbdc0
commit 0de97b676d

View file

@ -62,7 +62,7 @@ export default class extends Controller {
#draw() { #draw() {
if (this.#dataPoints.length == 0) { if (this.#dataPoints.length < 2) {
this.#drawEmpty() this.#drawEmpty()
} else if (this.#isFullChart) { } else if (this.#isFullChart) {
this.#drawFullChart() this.#drawFullChart()