MCPcopy Create free account
hub / github.com/alpha2phi/python-apps / update_y_timeseries

Function update_y_timeseries

sagemaker-dash/tutorials/app15.py:166–171  ·  view source on GitHub ↗
(hoverData, xaxis_column_name, axis_type)

Source from the content-addressed store, hash-verified

164 dash.dependencies.Input('crossfilter-xaxis-type', 'value')
165])
166def update_y_timeseries(hoverData, xaxis_column_name, axis_type):
167 country_name = hoverData['points'][0]['customdata']
168 dff = df[df['Country Name'] == country_name]
169 dff = dff[dff['Indicator Name'] == xaxis_column_name]
170 title = '<b>{}</b><br>{}'.format(country_name, xaxis_column_name)
171 return create_time_series(dff, axis_type, title)
172
173
174@app.callback(dash.dependencies.Output('y-time-series', 'figure'), [

Callers

nothing calls this directly

Calls 1

create_time_seriesFunction · 0.85

Tested by

no test coverage detected