From 1c297f3175dac65f6a34b6fa8218aedfa653124d Mon Sep 17 00:00:00 2001 From: stefan-hoehn Date: Sun, 26 Nov 2023 23:27:41 +0100 Subject: [PATCH] Extend chart periods to 3Y, 5Y and 10Y (#2190) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Allow further settings 3Y, 5Y, 10Y for dynamic period of chart. Signed-off-by: Stefan Höhn --- .../web/src/assets/definitions/widgets/system/chart.js | 5 ++++- .../web/src/components/widgets/system/oh-chart-component.vue | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/bundles/org.openhab.ui/web/src/assets/definitions/widgets/system/chart.js b/bundles/org.openhab.ui/web/src/assets/definitions/widgets/system/chart.js index 978fc8ec84..60dd4f2387 100644 --- a/bundles/org.openhab.ui/web/src/assets/definitions/widgets/system/chart.js +++ b/bundles/org.openhab.ui/web/src/assets/definitions/widgets/system/chart.js @@ -23,7 +23,10 @@ export default () => [ { value: '2M', label: '2M' }, { value: '4M', label: '4M' }, { value: '6M', label: '6M' }, - { value: 'Y', label: 'Y' } + { value: 'Y', label: 'Y' }, + { value: '3Y', label: '3Y' }, + { value: '5Y', label: '5Y' }, + { value: '10Y', label: '10Y' } ]).v((value, configuration, configDescription, parameters) => { return !configuration.chartType }) diff --git a/bundles/org.openhab.ui/web/src/components/widgets/system/oh-chart-component.vue b/bundles/org.openhab.ui/web/src/components/widgets/system/oh-chart-component.vue index fbf7aeb65a..31bb6df681 100644 --- a/bundles/org.openhab.ui/web/src/components/widgets/system/oh-chart-component.vue +++ b/bundles/org.openhab.ui/web/src/components/widgets/system/oh-chart-component.vue @@ -15,7 +15,7 @@ -