This repository was archived by the owner on Aug 29, 2025. It is now read-only.

Description
There is a typo in the 2nd to the last line in the 2nd to the last callback func:
@app.callback(
dash.dependencies.Output('x-time-series', 'figure'),
[dash.dependencies.Input('crossfilter-indicator-scatter', 'hoverData'),
dash.dependencies.Input('crossfilter-xaxis-column', 'value'),
dash.dependencies.Input('crossfilter-xaxis-type', 'value')])
def update_y_timeseries(hoverData, xaxis_column_name, axis_type):
country_name = hoverData['points'][0]['customdata']
dff = df[df['Country Name'] == country_name]
dff = dff[dff['Indicator Name'] == xaxis_column_name]
title = '{}
{}'.format(country_name, xaxis_column_name)
return create_time_series(dff, axis_type, title)
The {} in front of .format should be removed.
The correct code for this section should be:
title = '{}'.format(country_name, xaxis_column_name)
return create_time_series(dff, axis_type, title)
Please kindly check and verify.