I am experimenting with charts and so far so good. Currently, my chartType is set to Day. So every day the chart starts again at midnight, completing itself from left to right as the dat progresses.
I tried modifying this to 24 hour to show the ‘running’ (or past) 24 hours. But somehow, I get this weird line:
There must be an option or something that I miss but so far I can’t find it
Any suggestions please?
YAML:
config:
label: Grafiek keukenwaarden
chartType: day
options:
color:
- red
- blue
- "#59f42f"
slots:
grid:
- component: oh-chart-grid
config:
includeLabels: true
height: 75%
bottom: 50px
show: false
xAxis:
- component: oh-category-axis
config:
gridIndex: 0
categoryType: day
weekdayFormat: default
monthFormat: default
show: false
yAxis:
- component: oh-value-axis
config:
name: °C
scale: false
gridIndex: 0
- component: oh-value-axis
config:
name: "%"
scale: false
gridIndex: 0
- component: oh-value-axis
config:
name: ""
scale: false
gridIndex: 0
show: false
series:
- component: oh-aggregate-series
config:
name: Temperatuur
gridIndex: 0
xAxisIndex: 0
yAxisIndex: 0
type: line
item: tempKeuken
dimension1: hour
areaStyle:
opacity: 0.2
smooth: true
showSymbol: false
- component: oh-aggregate-series
config:
name: Luchtvochtigheid
gridIndex: 0
xAxisIndex: 0
yAxisIndex: 1
type: line
item: humKeuken
dimension1: hour
areaStyle:
opacity: 0.2
smooth: true
showSymbol: false
- component: oh-aggregate-series
config:
name: Luchtkwaliteit
gridIndex: 0
xAxisIndex: 0
yAxisIndex: 2
type: line
item: iaqKeuken
dimension1: hour
areaStyle:
opacity: 0.2
smooth: true
showSymbol: false
tooltip:
- component: oh-chart-tooltip
config:
show: true
orient: vertical
trigger: axis
legend:
- component: oh-chart-legend
config:
show: true
bottom: "10"
type: scroll