mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-27 09:09:41 +02:00
Draw empty time series chart if less than 2 data points
This commit is contained in:
parent
57eebbbdc0
commit
0de97b676d
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue