diff options
author | Maksim Zakharov <m.zakharov@IBS.RU> | 2022-08-09 18:00:56 +0300 |
---|---|---|
committer | Maksim Zakharov <m.zakharov@IBS.RU> | 2022-08-09 18:00:56 +0300 |
commit | 3b602a7dc56fa647e9a798793cda24308bcb527e (patch) | |
tree | c0516ace569c19025b260fdff0d362e5712defae /src/components/_sila/Global/Chart.vue | |
parent | e8275b295c5c3bf02720ee38a37ae4e71542b1a8 (diff) | |
download | webui-vue-3b602a7dc56fa647e9a798793cda24308bcb527e.tar.xz |
add dynamic graphics in progress
Diffstat (limited to 'src/components/_sila/Global/Chart.vue')
-rw-r--r-- | src/components/_sila/Global/Chart.vue | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/components/_sila/Global/Chart.vue b/src/components/_sila/Global/Chart.vue index 63f1f0a9..d6ea2492 100644 --- a/src/components/_sila/Global/Chart.vue +++ b/src/components/_sila/Global/Chart.vue @@ -133,8 +133,12 @@ export default { color: this.colors[index], }; }); - - return metricArr; + return metricArr.length > 0 + ? metricArr + : [ + { color: '', data: [], name: '' }, + { color: '', data: [], name: '' }, + ]; }, metricTime() { |