Bind table data using raw html approach


I’m using raw html as a dash component. On page load, everything works fine.
I have to update the table data on click of the bar chart.

layout = '''
app = dash.Dash(server=server, routes_pathname_prefix="/dashboard/", index_string=layout)

barGraph = dcc.Graph(id='queuePlot', 
figure={'data': [{'x': [1, 2, 3]}]}

app.layout = html.Div([
  1. Is there any approach there for click event without using callback?
  2. How to bind the table data using above approach?

Hello @Sharathkumar,

Welcome to the community!

Sure, since you are using raw html and no callbacks, you are looking for interaction through Javascript. You can design custom JS scripts and place them in your assets folder to load when the app is started.

1 Like