Hi,
I’m new to Dash and doing some tutorials now.
In one of them there are use of Dataframe.index and Dataframe.Close for the x and y axis.
I tried to google it briefly, but didnt find anything helpful…
The underlying behavior is not fully clear to me, and I will appreciate any comment.
A link will be also be great !
The sample code:
d_dcc.Graph(
id='example-graph',
figure={
'data': [
{'x': df.index, 'y': df.Close, 'type': 'line', 'name': input_data}
],
'layout': {
'title': str(input_data + " Stock")
}
}
)
Thanks !
2 posts - 2 participants









