Open JosephKarpinski opened 3 weeks ago
Does this issue occur when all extensions are disabled?: Yes/No
Steps to Reproduce:
x = np.random.uniform(-10, 10, size=50) y = np.sin(x) clicked = []
app = Dash(name) app.layout = html.Div( [ dcc.Graph( id="fig", figure=go.Figure(go.Scatter(x=x, y=y, mode="markers", name="base_points")), ), html.Div(id="debug"), ] )
@app.callback( Output("debug", "children"), Input("fig", "clickData"), ) def point_clicked(clickData): if clickData: point = clickData["points"][0] x, y = point["x"], point["y"] hover_text = f"x: {x}, y: {y}" return hover_text else: return ""
if name == "main": app.run_server()
@DonJayamanne can you help triage this issue?
Does this issue occur when all extensions are disabled?: Yes/No
Steps to Reproduce:
x = np.random.uniform(-10, 10, size=50) y = np.sin(x) clicked = []
Build App
app = Dash(name) app.layout = html.Div( [ dcc.Graph( id="fig", figure=go.Figure(go.Scatter(x=x, y=y, mode="markers", name="base_points")), ), html.Div(id="debug"), ] )
@app.callback( Output("debug", "children"), Input("fig", "clickData"), ) def point_clicked(clickData): if clickData: point = clickData["points"][0] x, y = point["x"], point["y"] hover_text = f"x: {x}, y: {y}" return hover_text else: return ""
Run app and display result inline in the notebook
if name == "main": app.run_server()