Skip to content

Commit 0706f3a

Browse files
authored
Enable additional chart types for oh-data-series (#2946)
This enables the use of all imported ECharts in (custom) widgets using `oh-data-series`.
1 parent f3a973e commit 0706f3a

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

bundles/org.openhab.ui/doc/components/oh-data-series.md

+4
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ prev: /docs/ui/components/
3333
The type of the series.<br/><em>Note: <code>heatmap</code> needs a configured visual map or uses the default and is not supported for time series!</em>
3434
</PropDescription>
3535
<PropOptions>
36+
<PropOption value="line" label="Line" />
37+
<PropOption value="bar" label="Bar" />
38+
<PropOption value="heatmap" label="Heatmap" />
39+
<PropOption value="scatter" label="Scatter" />
3640
<PropOption value="gauge" label="Gauge" />
3741
<PropOption value="pie" label="Pie" />
3842
</PropOptions>

bundles/org.openhab.ui/web/src/assets/definitions/widgets/chart/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ export default {
286286
props: {
287287
parameterGroups: [actionGroup()],
288288
parameters: [
289-
seriesTypeParameter('gauge', 'pie'),
289+
seriesTypeParameter('line', 'bar', 'heatmap', 'scatter', 'gauge', 'pie'),
290290
...actionParams()
291291
]
292292
}

0 commit comments

Comments
 (0)