Filter Other Elements to Data Selected in Mito
Subscribe to the spreadsheet_selection to enable cross filtering
Motivation
A user uses a Mito spreadsheet to select a few specific rows or columns.
You want to display a graph somewhere else in your dashboard, just based on these few rows or columns.
Crossfiltering using the Mito spreadsheet component
First, set the track_selection
parameter in the Spreadsheet component to True.
Simply use the @mito_callback
to watch for changes on the spreadsheet_selection
prop.
Notably, the spreadsheet_selection
return type will return a Pandas dataframe that corresponds to the selected data in the sheet.
Example: changing a graph based on the current selection in a Mito spreadsheet
Last updated