Hi,
I’m using a “bar chart” which doesn’t look like one because every single measure is a bar - and over a day it looks like an area chart:
config:
label: Chart Stromverbrauch
period: D
chartType: day
slots:
grid:
- component: oh-chart-grid
config:
show: true
legend:
- component: oh-chart-legend
config:
orient: horizontal
show: true
series:
- component: oh-time-series
config:
areaStyle:
opacity: 0.2
color: orange
gridIndex: 0
item: Balkonkraftwerk_Solar_shellypmmini6055f99fdf1019216810191_Stromverbrauch
lineStyle:
width: 2
markLine:
data:
- type: average
markPoint:
data:
- name: min
type: min
- name: max
type: max
label:
fontWeight: bold
smooth: true
name: Balkonkraftwerk
type: bar
xAxisIndex: 0
yAxisIndex: 0
- component: oh-time-series
config:
areaStyle:
opacity: 0.2
color: red
gridIndex: 0
item: Shelly_3EM_Haus_shellyem3c45bbe6a867d19216810173_Kumulierter_Verbrauch
lineStyle:
width: 2
markLine:
data:
- type: average
markPoint:
data:
- name: min
type: min
- name: max
type: max
label:
fontWeight: bold
smooth: true
name: Gesamtverbrauch Haus
type: bar
xAxisIndex: 0
yAxisIndex: 0
- component: oh-time-series
config:
areaStyle:
opacity: 0.2
color: blue
gridIndex: 0
item: Gesamtverbrauch_ohne_Solar
lineStyle:
width: 2
markLine:
data:
- type: average
markPoint:
data:
- name: min
type: min
- name: max
type: max
label:
fontWeight: bold
smooth: true
name: Gesamtverbrauch ohne Solar
type: bar
xAxisIndex: 0
yAxisIndex: 0
xAxis:
- component: oh-time-axis
config:
gridIndex: 0
yAxis:
- component: oh-value-axis
config:
gridIndex: 0
dataZoom:
- component: oh-chart-datazoom
config:
show: true
type: slider
orient: horizontal
My question: Is there a simple way (like a parameter in the code) to tell the charting engine to aggregate bars e.g. on hourly level? And if so - do you have an example at hand?
Thank you!