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 figure argument of dcc.Graph refers to a figure generated by Plotly (express or graph_object). Please refer to the original documentation on the component for some simple examples.
The way this code snippet generates the figure works, but it is not the easiest one to understand as a beginner. In simple words, this is creating a px.line (from plotly.express) figure and feeding the DataFrame index and “Close” column as x and y, respectively. The rest is just a few adjustments to the legend and title.