Replies: 1 comment
-
you can put in an offset of 1d directly to each item / entity: eg after the entity and with appropriate indent: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
i have a Chart what shows me the current and future price for Grid.
But now after time change to summertime in Germany my chart isn´t correct anymore.
The time is off for one houre.
How can i fix it for correct handle of summer and wintertime?
`type: custom:apexcharts-card
graph_span: 48h
experimental:
color_threshold: true
header:
title: Energy price today
show: false
show_states: false
span:
start: day
offset: +30m
now:
show: true
label: jetzt
color: FFFF00
series:
type: column
unit: €/kWh
float_precision: 3
yaxis_id: preis
name: Netzpreis
show:
extremas: true
in_header: after_now
header_color_threshold: true
color_threshold:
color: 00FF00
color: 8BC34A
color: FFEB3B
color: FF9800
color: FF5722
color: D32F2F
color: B71C1C
color: 9C1D1D
data_generator: |
return entity.attributes.data.map((entry) => {
const startTime = new Date(entry.start_time);
const localTime = new Date(startTime.getTime() - (startTime.getTimezoneOffset() * 60000));
return [localTime, entry.price_per_kwh];
});
group_by:
func: avg
duration: 1h
yaxis:
decimals: 2
apex_config:
title:
text: €/kWh
tickAmount: 8
apex_config:
chart:
type: area
height: 700
legend:
show: false
tooltip:
x:
show: true
format: HH:00 - HH:59
`
Beta Was this translation helpful? Give feedback.
All reactions