Filter pane examples
This help topic provides several examples showing how you can customize styling and other properties in filter panes to achieve a number of functional purposes.
Example 1 — Condensed design
You can add many listboxes to a filter pane, allowing refinement of data across many different dimensions.
To save space and prioritize other visualizations on your sheet, you can give your filter pane a condensed design where content is expanded and collapsed as needed.
Do the following:
-
Create a new app and paste the Example load script into a new section in the Data load editor. Then, load the data.
-
Switch to sheet view. In the sheet properties, set Grid spacing to 42.
-
Drag a Filter pane onto the sheet.
-
Click Add dimension. Select Country.
-
In the properties panel, click Add field. Select Item Type.
-
Using the Add field button, add four other dimensions as listboxes:
- Order Year
-
Order Priority
-
Region
-
Sales Channel
-
One by one, expand each listbox you just added and set Presentation > Collapse listbox to Always.
-
In the properties panel, expand Appearance > Presentation.
-
Click
Styling.
-
In the Filter pane tab, set the following properties:
-
Font size for Title: 18px
-
Font color for Title: Hex code #ffffff
-
Background color: Hex code #87205d
-
Shadow: Small, Hex code #000000
-
-
In the Listboxes tab, set the following properties:
-
Font size for Header: 14px
-
-
Resize the filter pane to a two-by-ten space on the sheet grid.
Switch to analysis mode. You can expand listboxes as needed to make selections.
Drawer-style filter pane in collapsed state

Drawer-style filter pane with dimensions list expanded

Example 2 — Rich design
Although a filter pane is mainly used to filter data, it can also be used to visualize data. Incorporating a rich design allows analyzers to gain insights as they make different selections.
Do the following:
-
Create a new app and paste the Example load script into a new section in the Data load editor. Then, load the data.
-
Switch to sheet view and drag a Filter pane onto the sheet.
-
Click Add dimension. Select Item Type.
-
Click the Item Type listbox to expand its properties.
-
Expand Presentation.
-
Turn on the Histogram setting.
-
Use the Show frequency drop down menu to select Relative frequency (%).
-
Set Collapse listbox to Never.
-
Expand Sorting.
-
Set the Sorting to Custom.
-
Clear all options and turn on Sort by expression.
-
Select Descending.
-
Under Expression, enter the following expression:
Count([Item Type]) -
In the properties panel, expand Appearance > General.
-
Turn off Show titles.
-
Expand Appearance > Presentation.
-
Click
Styling.
-
In the Listboxes tab, set the following properties:
-
Header:
-
Font: Inter, sans-serif
-
Font size: 18px
-
-
Content:
-
Font: Inter, sans-serif
-
-
-
Resize the filter pane to a small rectangular shape, for example, three by four squares.
Filter pane with rich design. The items in the filter pane are shown with value distribution histograms and relative percentages, and are sorted in descending order from highest to lowest occurrence.

Example 3 — Focused design
How you design your filter pane can depend on how you want users to make selections. For example, you might want to restrict users from certain features to encourage more narrow, focused interaction with data.
Scenarios include:
-
Filtering on your particular dimension brings most insight when values are selected one at a time, or selecting multiple values does not provide any meaningful insight. To guide analysis in this way, you can turn off range selection by using checkbox mode.
-
Searching for values in the field either provides no insight, or is not desirable.
-
You want to minimize distractions when filtering data—for example, the selections toolbar.
Do the following:
-
Create a new app and paste the Example load script into a new section in the Data load editor. Then, load the data.
-
Switch to sheet view and drag a Filter pane onto the sheet.
-
Click Add dimension. Select Item Type.
-
Click the Item Type listbox to expand its properties.
-
Set Search to Hide.
-
Turn off Show Selection toolbar.
-
Expand Presentation.
-
Turn on Checkbox mode.
-
In the properties panel, expand Appearance > General.
-
Turn off Show titles.
-
Resize the filter pane to a small rectangular shape, for example, three by four squares.
Filter pane with focused design

Example 4 — Grid design
You can use grid mode for filter panes that use small, defined sets of data. A good example is organizing time-based dimensions in grids.
Do the following:
-
Create a new app and paste the Example load script into a new section in the Data load editor. Then, load the data.
-
Switch to sheet view and drag a Filter pane onto the sheet.
-
Click Add dimension. Select Order Year.
-
Click the Order Year listbox to expand its properties.
-
Turn off Show titles.
-
Expand Presentation.
-
Set Collapse listbox to Never.
-
For Show data in, select Grid.
-
Set Max visible columns to Custom.
-
Set Max columns to 3.
-
Add Order Quarter as a listbox in the filter pane.
-
Click the Order Quarter listbox to expand its properties.
-
Turn off Show titles.
-
Expand Presentation.
-
Set Collapse listbox to Never.
-
For Show data in, select Grid.
-
Set Order by to Columns.
-
Set Max visible rows to Custom.
-
Set Max columns to 1.
-
Add Order Month as a listbox in the filter pane.
-
Click the Order Month listbox to expand its properties.
-
Turn off Show titles.
-
Expand Presentation.
-
Set Collapse listbox to Never.
-
For Show data in, select Grid.
-
Set Max visible columns to Custom.
-
Set Max columns to 4.
-
In the properties panel, expand Appearance > General.
-
Turn off Show titles.
-
In the properties panel, expand Appearance > Presentation.
-
Click
Styling.
-
In the Filter pane tab, set the following properties:
-
Background color: #83af9b
-
-
In the Listboxes tab, set the following properties:
-
Content:
-
Font: Fredoka One, fantasy
-
Text size: 15px
-
Text size: Bold
-
Text color: #000000
-
-
Selection state > Possible: #000000
-
Background color: #83af9b
-
-
Resize the filter pane to a size that works well for the display—for example, three by three.
Filter pane with grid design

Further enhancements: composite filter pane with the layout container
For further responsiveness and control, you could create the above filter pane as a series of three filter panes embedded within a layout container. The image below shows an example of what this might look like.
Grid-style filter panes embedded in a layout container

Example 5 — Aligning with organization's color palette
Filter panes can be styled in accordance with your organization's color palette. In addition to defining background and text color, you can set color schemes for the selection states in your filter pane. You might want selections to appear in your company's main brand colors rather than the default green color.
With custom themes, you can further apply your organization's color scheme by setting a color for selections across all visualizations and the selection toolbar. For more information, see Custom themes.
In this example, we create a filter pane reflecting the following brand colors:
-
Main color: Hex code #3100ff
-
Secondary color: Hex code #9ba7ff
Do the following:
-
Create a new app and paste the example data into a new section in the Data load editor. Then, load the data.
-
Switch to sheet view and drag a Filter pane onto the sheet.
-
Click Add dimension. Select Item Type.
-
In the properties panel, click Add field. Select Order Year.
-
Using the Add field button, add three other dimensions as listboxes:
-
Order Priority
-
Region
-
Sales Channel
-
-
In the properties panel, expand Appearance > General.
-
Turn off Show titles.
-
Expand Appearance > Presentation.
-
Click
Styling.
-
In the Filter pane tab, set the following properties:
-
Shadow: Small, Hex code #000000
-
-
In the Listboxes tab, set the following properties:
-
Font size for Header: 14px
-
Selection state:
-
Selected: Hex code #3100ff
-
Alternative: Hex code #9ba7ff
-
Excluded: #bebebe
-
Selected excluded: #7b7a78
-
Possible: #ffffff
-
-
-
Resize the filter pane to a long rectangular shape on one side of the sheet—for example, three by twelve squares.
Switch to analysis mode. Make selections in the filter pane to view the color scheme.
Filter pane with selection states reflecting brand colors
