Skip to content

FigureWidget for time-series data #5267

Closed as duplicate
Closed as duplicate

Description

@sursu

FigureWidget does not recognize the datetime index passed to the x-axis.

Here's how to reproduce the issue:

Data:

dates = pd.date_range('2024', '2025', freq='QE')
df = pd.DataFrame([1,4,3,7], index = dates, columns=['val'])

Plot:

fig = go.FigureWidget(layout={'height':600, 'width':800})
fig.add_scatter(x=df.index, y=df.val)
fig

The values on the x-axis are mysterious.

Everything looks fine when I use go.Figure().


Python 3.12.9
Plotly 6.0.1
JupyterLab 4.4.4

Activity

  1. added
    bugsomething broken
    P2considered for next cycle
    on Jul 8, 2025
  2. mgmarino commented on Jul 9, 2025

    @mgmarino

    dupe: #5210

  3. emilykl commented on Sep 2, 2026

    @emilykl
    Contributor

    Hi @sursu, apologies for the belated follow-up.

    I believe this bug has the same root cause as #5355 / #5210 and was addressed by #5415, first released in plotly.py v6.5.0 (Nov 2025).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2considered for next cyclebugsomething broken

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions