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

Have NeedlePlot update selectedData #517

Closed
kellrott opened this issue Sep 23, 2020 · 0 comments · Fixed by #565
Closed

Have NeedlePlot update selectedData #517

kellrott opened this issue Sep 23, 2020 · 0 comments · Fixed by #565
Assignees

Comments

@kellrott
Copy link

Attempting to connect NeedlePlot graph other interactive elements, using patterns described in https://dash.plotly.com/interactive-graphing

component = dash_bio.NeedlePlot(
  id='my-dashbio-needleplot',
  mutationData=mData,
  needleStyle={
        'stemColor': '#FF8888',
        'stemThickness': 2,
        'headSize': 10,
        'headColor': ['#FFDD00', '#000000']
  }
)


@app.callback(
    Output('needle-selection', 'children'),
    [Input('my-dashbio-needleplot', 'selectedData')])
def display_selected_data(selectedData):
    print("Got selectedData")
    return json.dumps(selectedData, indent=2)

It doesn't seem like the callback is ever invoked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants