title = "Stock Time Series"
start = datetime.datetime(2015, 1, 1)
end = datetime.datetime(2019, 12, 1)
df_1 = web.DataReader("AAPL", "yahoo", start, end).reset_index()
df_2 = web.DataReader("MSFT", "yahoo", start, end).reset_index()
df_3 = web.DataReader("AMZN", "yahoo", start, end).reset_index()
margin = go.layout.Margin(l=20, r=20, b=20, t=30)
fig = go.Figure([go.Scatter(x=df_1['Date'], y=df_1['Close'])])
fig.update_layout(margin=margin)
fig
fig = go.Figure([go.Scatter(x=df_2['Date'], y=df_2['Close'])])
fig.update_layout(margin=margin)
fig
fig = go.Figure([go.Scatter(x=df_3['Date'], y=df_3['Close'])])
fig.update_layout(margin=margin)
fig