You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have 3 entities in 1 series - data for yesterday, today and tomorrow, half hourly intervals - Octopus Agile #
I am plotting these as a step line so I get a half hour gap between each day as I can't find a way to either 'join' or 'link' these three entities into one data_generator output?
<
type: custom:apexcharts-card
apex_config:
legend:
show: false
header:
show: true
title: Agile prices (yesterday, today, tomorrow)
yaxis:
apex_config:
forceNiceScale: true
decimals: 0
span:
start: day
offset: '-1d'
graph_span: 3d
now:
show: true
experimental:
color_threshold: true
all_series_config:
type: line
curve: stepline
name: p/kWh
stroke_width: 2
float_precision: 3
color_threshold:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi
I have 3 entities in 1 series - data for yesterday, today and tomorrow, half hourly intervals - Octopus Agile #
I am plotting these as a step line so I get a half hour gap between each day as I can't find a way to either 'join' or 'link' these three entities into one data_generator output?
<
type: custom:apexcharts-card
apex_config:
legend:
show: false
header:
show: true
title: Agile prices (yesterday, today, tomorrow)
yaxis:
forceNiceScale: true
decimals: 0
span:
start: day
offset: '-1d'
graph_span: 3d
now:
show: true
experimental:
color_threshold: true
all_series_config:
type: line
curve: stepline
name: p/kWh
stroke_width: 2
float_precision: 3
color_threshold:
color: cyan
color: lightblue
color: lightgreen
color: green
color: orange
color: red
series:
event.octopus_energy_electricity_previous_day_rates
extend_to: false
data_generator: |
return entity.attributes.rates.map((entry) => {
return [new Date(entry.start), entry.value_inc_vat*100];
})
event.octopus_energy_electricity_current_day_rates
extend_to: false
data_generator: |
return entity.attributes.rates.map((entry) => {
return [new Date(entry.start), entry.value_inc_vat*100];
})
extend_to: end
data_generator: |
return entity.attributes.rates.map((entry) => {
return [new Date(entry.start), entry.value_inc_vat*100];
})
Beta Was this translation helpful? Give feedback.
All reactions