Data Set Filters
s.plt.filter(
order: int, # Order in the view
data: str, # The name of the shared data set
field: str, # The field from the data set to be filtered
multi_select: bool = False, # Wether to use the multi select for categoricals
cols_size: int = 4, # The number columns that will occupy the filter
rows_size: int = 1, # The number of rows that will occupy the filter
padding: Optional[str] = None # The padding that will be applie to the filter
)data_to_filter = [
{'date': dt.date(2021, 1, 1), 'x': 5, 'y': 5, 'filtA': 'A', 'filtB': 'Z', 'name': 'Ana'},
{'date': dt.date(2021, 1, 2), 'x': 6, 'y': 5, 'filtA': 'B', 'filtB': 'Z', 'name': 'Laura'},
{'date': dt.date(2021, 1, 3), 'x': 4, 'y': 5, 'filtA': 'A', 'filtB': 'W', 'name': 'Audrey'},
{'date': dt.date(2021, 1, 4), 'x': 7, 'y': 5, 'filtA': 'B', 'filtB': 'W', 'name': 'Jose'},
{'date': dt.date(2021, 1, 5), 'x': 3, 'y': 5, 'filtA': 'A', 'filtB': 'Z', 'name': 'Jorge'},
]




Last updated
Was this helpful?



