Hello
I have a graph with my thermal solar production and via an oh-data-series the futur solar forecast.
I would like to display a personalised period from today (last day of chart 1) to 2 days in the futur (2 first day of chart 2). It’s possible?
char 1
chart 2
Thanks and best regards
config:
label: Solaire termique - puissance
period: 3D
slots:
grid:
- component: oh-chart-grid
config: {}
xAxis:
- component: oh-time-axis
config:
gridIndex: 0
#min: 2024-10-24 #not work
yAxis:
- component: oh-value-axis
config:
gridIndex: 0
min: "0"
max: "5000"
- component: oh-value-axis
config:
gridIndex: 0
series:
- component: oh-time-series
config:
name: Puissance messurée
gridIndex: 0
xAxisIndex: 0
yAxisIndex: 0
type: line
item: SolaireThermiquePuissanceH2O
label:
show: true
position: top
- component: oh-time-series
config:
name: Estimé (historique)
gridIndex: 0
xAxisIndex: 0
yAxisIndex: 0
type: line
item: Prevision_solaire_thermique_Actual_Power
- component: oh-data-series
config:
gridIndex: 0
name: Estimé
type: line
xAxisIndex: 0
yAxisIndex: 0
showSymbol: false
data: =JSON.parse(items.Prevision_solaire_thermique_JSON.state).estimated_actuals.map(x=>[x.period_end,x.pv_estimate*1000])
- component: oh-data-series
config:
gridIndex: 0
name: Prévison
type: line
xAxisIndex: 0
yAxisIndex: 0
showSymbol: false
data: =JSON.parse(items.Prevision_solaire_thermique_JSON.state).forecasts.map(x=>[x.period_end,x.pv_estimate*1000])
toolbox: []
tooltip:
- component: oh-chart-tooltip
config:
show: true
confine: true
legend:
- component: oh-chart-legend
config:
show: true
orient: horizontal
dataZoom:
- component: oh-chart-datazoom
config:
show: true
type: inside

