Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Poor chart performance when dragging the panel #1988

Open
mattrunyon opened this issue May 4, 2024 · 0 comments
Open

Poor chart performance when dragging the panel #1988

mattrunyon opened this issue May 4, 2024 · 0 comments
Labels
bug Something isn't working
Milestone

Comments

@mattrunyon
Copy link
Collaborator

Description

Charts resubscribe to the model when the panel is dragged to be moved. This can cause lockup and a lag spike if you are dragging a chart with a lot of points.

Steps to reproduce

  1. Run this Python
    from deephaven import empty_table
    from deephaven.plot.figure import Figure, PlotStyle
    
    import datetime
    from deephaven import time_table
    t = time_table("PT1S", datetime.datetime.now() - datetime.timedelta(seconds=150000)).update("Y=ii")
    
    plot_singles = (
        Figure()
        .plot_xy(
            series_name="Y",
            t=t,
            x="Timestamp",
            y="Y",
        )
        .axes(plot_style=PlotStyle.SCATTER)
        .show()
    )
  2. Click the button to continue and disable downsampling
  3. After the plot has loaded, drag the panel with the plot to move it to a different position

Expected results

  1. Snappy movement

Actual results

  1. UI freezes for 1-2 seconds at least shortly after the drag starts

Versions

Engine Version: 0.35.0-SNAPSHOT
Web UI Version: 0.75.1
Java Version: 17.0.10
Barrage Version: 0.6.0
Browser Name: Chrome 124
OS Name: Linux

@mattrunyon mattrunyon added bug Something isn't working triage Issue requires triage labels May 4, 2024
@vbabich vbabich added this to the Backlog milestone May 9, 2024
@vbabich vbabich removed the triage Issue requires triage label May 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants