Skip to content

[BUG]: v6.7.0 can't plot basic #5600

@FrankHui

Description

@FrankHui

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.

Image

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'])])

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugsomething broken

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions