I get a dataframe & plot the x axis like the following:
df = web.DataReader(“aapl”, ‘morningstar’).reset_index()
trace_high = go.Scatter( x=df.Date)
return {
'data': [trace_high]
}
if name == ‘main’:
app.run_server()
However when I try to use go.Ohlc or go.Candlestick (instead of Scatter) I get the default x axis; starts at 0, then 1, then 2, etc. In the console it acts like everything is being returned fine though…
127.0.0.1 - - [05/Apr/2018 13:10:37] “GET / HTTP/1.1” 200 -
127.0.0.1 - - [05/Apr/2018 13:10:38] “GET /_dash-layout HTTP/1.1” 200 -
127.0.0.1 - - [05/Apr/2018 13:10:38] “GET /_dash-dependencies HTTP/1.1” 200 -
127.0.0.1 - - [05/Apr/2018 13:10:39] “POST /_dash-update-component HTTP/1.1” 200 -
127.0.0.1 - - [05/Apr/2018 13:10:46] “POST /_dash-update-component HTTP/1.1” 200 -
127.0.0.1 - - [05/Apr/2018 13:10:50] “POST /_dash-update-component HTTP/1.1” 200 -
I’m using plotly 2.5.1 & wondering if there’s something I’ve missed or if I need to use a specific version?