Skip to content

Plotly plots "jump" on update #161

Open

Description

Description

I created a minimal app using shiny and plotly using shinywidgets. When I use the select input to change the x variable, the plotly plot rerenders, but there is a visible "jump" that is jarring. Is there a way to avoid this? Note that I tried the same app with streamlit and dash and in both cases, there is NO "jump"

What I Did

import plotly.express as px
from shiny.express import input, ui
from shinywidgets import render_plotly

ui.input_selectize('xvar', 'Select X', ['tip', 'total_bill'])

@render_plotly
def plot2():
    return px.histogram(px.data.tips(), x=input.xvar())

Shinylive URL

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

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions