Hi i have the next Dash with 2 trace and i need to add on on the bottom (X) an array with time.
like [“00:00”, “00:05”…].
**
**I have this python code:
trace1 = go.Scatter(
## x=array1,
y=array2,
name='Dia Y'
)
trace2 = go.Scatter(
# x=arrayy1,
y=arrayy2,
name='Dia X'
)
external_stylesheets = ['https://codepen.io/chriddyp/pen/bWLwgP.css']
app = dash.Dash(__name__, external_stylesheets=external_stylesheets)
app.layout = html.Div(children=[
html.H1(children='Consum Elèctric'),
html.Div(children='''Dashboard: Per controlar el consum diari.'''),
dcc.Graph(
id='example-graph',
figure={
'data': [trace1, trace2],
'layout': {
'title': 'Consum diari'
}
}
)
])
if __name__ == '__main__':
app.run_server(debug=True)