Skip to content

FigureWidget for time-series data #5267

Open
@sursu

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

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

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy