I have the following graph for my dynamic energy prices. I have 2 questions to optimize this graph:
- I have a value for every 15minutes, but I want to group them per hour (are always the same per hour). Can I do this in the graph or do I need to get rid of the extra values?
- Can I mark the current hour block? So I can see immedtaley what the current price is?
config:
label: Elia prices
period: D
sidebar: true
future: false
chartType: day
slots:
dataZoom:
- component: oh-chart-datazoom
config:
show: true
type: inside
grid:
- component: oh-chart-grid
config: {}
legend:
- component: oh-chart-legend
config:
left: center
orient: horizontal
show: true
top: bottom
series:
- component: oh-time-series
config:
gridIndex: 0
item: elia_data
markLine:
data:
- label:
color: rgb(205, 112, 51)
fontSize: 20
formatter: "{c} avg"
position: insideEndTop
show: true
lineStyle:
color: rgb(205, 112, 51)
width: 2
name: average
type: average
symbol: none
markPoint:
data:
- name: min
type: min
itemStyle:
color: green
- name: max
type: max
itemStyle:
color: red
symbol: circle
name: spot
service: influxdb
type: bar
xAxisIndex: 0
yAxisIndex: 0
tooltip:
- component: oh-chart-tooltip
config:
show: true
xAxis:
- component: oh-time-axis
config:
axisPointer:
handle:
backgroundColor: blue
show: true
label:
backgroundColor: gray
show: true
snap: true
gridIndex: 0
name: period
yAxis:
- component: oh-value-axis
config:
gridIndex: 0
name: c€/kWh
scale: true