From a52e9a5bc2ac239e275133f381fb81280ac5823d Mon Sep 17 00:00:00 2001 From: Boris Krivonog Date: Wed, 27 Jan 2021 13:47:37 +0100 Subject: [PATCH 1/2] Add support for pie. Signed-off-by: Boris Krivonog --- .../web/src/components/widgets/system/oh-chart-component.vue | 1 + 1 file changed, 1 insertion(+) 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 260e652731..53419c1a92 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 @@ -45,6 +45,7 @@ import 'echarts/lib/chart/line' import 'echarts/lib/chart/bar' import 'echarts/lib/chart/gauge' import 'echarts/lib/chart/heatmap' +import 'echarts/lib/chart/pie' import 'echarts/lib/chart/scatter' import 'echarts/lib/component/title' import 'echarts/lib/component/legend' From 82d1ad9bb060eca0172b30ca49c47a2335e39ad2 Mon Sep 17 00:00:00 2001 From: Boris Krivonog Date: Wed, 27 Jan 2021 16:01:36 +0100 Subject: [PATCH 2/2] Add `pie` as possible type. Signed-off-by: Boris Krivonog --- .../web/src/assets/definitions/widgets/chart/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bundles/org.openhab.ui/web/src/assets/definitions/widgets/chart/index.js b/bundles/org.openhab.ui/web/src/assets/definitions/widgets/chart/index.js index 1477b80c62..a6d28cf3cc 100644 --- a/bundles/org.openhab.ui/web/src/assets/definitions/widgets/chart/index.js +++ b/bundles/org.openhab.ui/web/src/assets/definitions/widgets/chart/index.js @@ -381,7 +381,7 @@ export default { props: { parameterGroups: [], parameters: [ - seriesTypeParameter('gauge') + seriesTypeParameter('gauge', 'pie') ] } },