Description
When using the provided code to create a scatter plot, the chart renders incorrectly or fails to display properly. The code uses a simple date sequence and shuffled numerical values, but go.Figure([go.Scatter(x=df['dt'], y=df['values'])]) does not produce the expected output. This issue may occur with the latest versions of Plotly and Pandas, and it could be a critical bug given the simplicity of the example.
Screenshots/Video
Add screenshots or a video of the issue.
Steps to reproduce
import pandas as pd
import plotly
from plotly import graph_objects as go
pd.__version__, plotly.__version__
values = list(range(100))
from random import shuffle
shuffle(values)
df = pd.DataFrame(
data={'dt': pd.date_range("2025-01-01", periods=100), 'values': values}
)
go.Figure([go.Scatter(x=df['dt'], y=df['values'])])
Description
When using the provided code to create a scatter plot, the chart renders incorrectly or fails to display properly. The code uses a simple date sequence and shuffled numerical values, but go.Figure([go.Scatter(x=df['dt'], y=df['values'])]) does not produce the expected output. This issue may occur with the latest versions of Plotly and Pandas, and it could be a critical bug given the simplicity of the example.
Screenshots/Video
Add screenshots or a video of the issue.
Steps to reproduce