✊🏿 Black Lives Matter. Please consider donating to Black Girls Code today.
📊 Dash 2.0 is Arriving. Register here.

Is there any way to use something similar to clickData outside a graph/dcc element?

I want a graph to be updated when the user clicks on numbers displayed on the screen. The numbers are simply embedded on a Div. Is there anyway I can achieve this?

@ber.sg - Every dash_html_components component has a property called n_clicks which is automatically updated whenever you click on the element. This is commonly used for html.Button (see https://plot.ly/dash/dash-core-components) but it could be used for any other html component as well.

1 Like