sda.dashboard.components.filters#

Filter Components.


Reusable filter components for the dashboard.

Attributes#

Functions#

create_unified_filter_sidebar()

Create a unified filter sidebar using Bootstrap Offcanvas.

create_filter_panel([plot_type])

Create a filter panel with dynamic filter slots.

create_categorical_filters(graph_type, filter_options)

Create dropdowns for categorical filters.

create_numerical_filters(graph_type, filter_options[, ...])

Create radio buttons for numerical filters with few options.

create_cost_filters(graph_type, filter_options)

Create range sliders for cost filters.

Module Contents#

sda.dashboard.components.filters.Options#
sda.dashboard.components.filters.create_unified_filter_sidebar()#

Create a unified filter sidebar using Bootstrap Offcanvas.

This creates a collapsible right sidebar with dynamic filter slots that are shared across all plot types (scatter, line, table).

Returns:

Unified filter sidebar component using Bootstrap Offcanvas

Return type:

dbc.Offcanvas

sda.dashboard.components.filters.create_filter_panel(plot_type='scatter')#

Create a filter panel with dynamic filter slots.

This creates a fixed number of filter slots that are dynamically allocated to the selected columns from the Test Selection tab.

DEPRECATED: This function is kept for backward compatibility. Use create_unified_filter_sidebar() for new implementations.

Parameters:

plot_type (str) – Type of plot (“scatter” or “line”)

Returns:

Filter panel component with dynamic slots

Return type:

html.Div

sda.dashboard.components.filters.create_categorical_filters(graph_type, filter_options, radio_style=False)#

Create dropdowns for categorical filters.

sda.dashboard.components.filters.create_numerical_filters(graph_type, filter_options, radio_style=False)#

Create radio buttons for numerical filters with few options.

sda.dashboard.components.filters.create_cost_filters(graph_type, filter_options)#

Create range sliders for cost filters.