Checklist
Describe the bug
I'm using data_generator to get my series data.
The xaxis is a datetime axis.
The data_generator is producing data timestamped in the future (prices of electricity of coming day).
I do not use graph_span as i want it to zoom to the data available.
The data are (probably) rendered correctly but the zoom of the graph starts from now (so it shows some columns in the end).
Then, i activated the toolbar and if i click on "Reset zoom" it zooms correctly to the area where my data is.
Version of the card
Version: 2.0.1
To Reproduce
This is the configuration I used:
type: custom:apexcharts-card
update_interval: 5s
apex_config:
chart:
zoom:
enabled: true
toolbar:
show: true
tools:
zoom: true
zoomin: true
zoomout: true
pan: true
reset: true
autoScaleXaxis: true
xaxis.type: datetime
yaxis:
min: 0
decimalsInFloat: 2
hours_12: false
now:
show: false
series:
- entity: sensor.nordpool_kwh_se4_sek_3_095_025
name: Test
type: column
float_precision: 3
data_generator: |
let res = [];
res.push([(new Date()).setHours(((new Date()).getHours() + 1)), 1]);
res.push([(new Date()).setHours(((new Date()).getHours() + 2)), 2]);
res.push([(new Date()).setHours(((new Date()).getHours() + 3)), 3]);
res.push([(new Date()).setHours(((new Date()).getHours() + 4)), 4]);
res.push([(new Date()).setHours(((new Date()).getHours() + 5)), 5]);
res.push([(new Date()).setHours(((new Date()).getHours() + 6)), 6]);
res.push([(new Date()).setHours(((new Date()).getHours() + 7)), 7]);
return res;
Screenshots
Before reset zoom:

After zoom:

Expected behavior
I would expect the zoom to recalculate once the data_generator data has been added.
Checklist
Describe the bug
I'm using data_generator to get my series data.
The xaxis is a datetime axis.
The data_generator is producing data timestamped in the future (prices of electricity of coming day).
I do not use graph_span as i want it to zoom to the data available.
The data are (probably) rendered correctly but the zoom of the graph starts from now (so it shows some columns in the end).
Then, i activated the toolbar and if i click on "Reset zoom" it zooms correctly to the area where my data is.
Version of the card
Version: 2.0.1
To Reproduce
This is the configuration I used:
Screenshots

Before reset zoom:
After zoom:

Expected behavior
I would expect the zoom to recalculate once the data_generator data has been added.