Skip to content
Advertisement

Dash datatable – bar plot when choosing/clicking one value of the table

I’m new using Dash and I wonder if it is possible to have a Dash table with 1 column of numeric values like this one:

JavaScript

And have the option to choose/click to one of the values and make a bar plot appear with the value clicked.

Hope you can help me. Thanks in advance.

Advertisement

Answer

You could use the active_cell property of dash_table.DataTable to get the clicked value in a callback. Then you can use this value to plot the graph:

JavaScript
Advertisement