diff options
author | Vitalii Lysak <v.lysak@dunice.net> | 2022-07-25 12:05:20 +0300 |
---|---|---|
committer | Vitalii Lysak <v.lysak@dunice.net> | 2022-07-25 12:05:20 +0300 |
commit | db0bf7d5f895fc01de541f72f4eea84aaf175d5a (patch) | |
tree | 7e3a2410672f3ac7870016ea940b945d4dbad595 /src/components/_sila | |
parent | b9eab2b357a8842482f25e2065f8832d5cf37218 (diff) | |
download | webui-vue-db0bf7d5f895fc01de541f72f4eea84aaf175d5a.tar.xz |
add areas, dynamic
Diffstat (limited to 'src/components/_sila')
-rw-r--r-- | src/components/_sila/Global/Chart.vue | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/components/_sila/Global/Chart.vue b/src/components/_sila/Global/Chart.vue index d24aad72..d17a5042 100644 --- a/src/components/_sila/Global/Chart.vue +++ b/src/components/_sila/Global/Chart.vue @@ -246,6 +246,20 @@ export default { this.categories = this.setCategories(101, 'С°'); this.yMax = 100; this.minTickInterval = 25; + this.plotBands = [ + { + color: '#F0AC0C1A', + dashStyle: 'solid', + from: this.nonNormal, + to: this.criticalStart, + }, + { + color: '#FF41411A', + dashStyle: 'solid', + from: this.criticalStart, + to: this.warning, + }, + ]; break; case 'motherboard': this.categories = this.setCategories(101, 'С°'); |