Adding histograms and tables to the app
We are now ready to incorporate the table functionality into our app and add it to the callback function that we already created. What we will do is display the data that is used to generate the histograms right under the histogram figure. Since the histograms don't show data points as we discussed (only aggregates), it might be interesting for users to see for themselves if they wish.
Let's add this functionality right away:
- Add a new div right underneath the histogram figure:
html.Div(id='table_histogram_output')
- Add this as an
Output
to the callback function:@app.callback(Output('indicator_year_histogram', 'figure'), Output('table_histogram_output', 'children'), Input('hist_multi_year_selector&apos...