I am not sure what could be the problem to be honest… Here’s my own reprex:
import pandas as pd
import plotly.graph_objects as go
import pandas_datareader as web
df = web.data.DataReader('GOOG', 'yahoo', "2021-01-01", "2021-08-25").reset_index()
fig = go.Figure(
data=[
go.Candlestick(
x=df['Date'],
open=df['Open'],
high=df['High'],
low=df['Low'],
close=df['Close'],
line=dict(width=1),
),
go.Line(
x=df['Date'],
y=df['Volume'] / 5_000,
)
]
)
fig.show()
Output:
It could be something different in df_ti
compared to ts
(in my case they are the same df), like different timestamps… Which version of plotly are you on?