Skip to content

Instantly share code, notes, and snippets.

@jingningzhang1
Created June 24, 2022 01:15
Show Gist options
  • Save jingningzhang1/e65d9f3e346b1338de1afca7cf19e38d to your computer and use it in GitHub Desktop.
Save jingningzhang1/e65d9f3e346b1338de1afca7cf19e38d to your computer and use it in GitHub Desktop.
@app.callback(
Output ("demographics", "figure"),
Input("scatter-x", "value"),
Input ("comparison", "value"),
)
def make_scatter(xaxis, comp):
dfscatter = dbx_utils.get_scatter_data(xaxis, comp)
scatterfig = chart_utils.generate_scatter(dfscatter, xaxis, comp)
return scatterfig
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment