Skip to content

Commit

Permalink
Temporarily remove state options check in analyzer (#1527)
Browse files Browse the repository at this point in the history
Close #1523.

Signed-off-by: Yannick Schaus <github@schaus.net>
  • Loading branch information
ghys authored Oct 14, 2022
1 parent 5c6a157 commit 5960cbe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bundles/org.openhab.ui/web/src/pages/analyzer/analyzer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ export default {
seriesOptions.name = item.label || item.name
seriesOptions.type = 'line'
seriesOptions.discrete = false
if ((item.type.indexOf('Number') !== 0 && item.type.indexOf('Dimmer') !== 0) || (item.stateDescription && item.stateDescription.options.length > 0)) seriesOptions.discrete = true
if ((item.type.indexOf('Number') !== 0 && item.type.indexOf('Dimmer') !== 0)) seriesOptions.discrete = true
if (!seriesOptions.discrete && this.coordSystem === 'aggregate' && this.aggregateDimensions === 1) seriesOptions.type = 'bar'
if (!seriesOptions.discrete && (this.coordSystem === 'calendar' || (this.coordSystem === 'aggregate' && this.aggregateDimensions === 2))) seriesOptions.type = 'heatmap'
if (seriesOptions.discrete) seriesOptions.type = 'area'
Expand Down

0 comments on commit 5960cbe

Please sign in to comment.