Skip to main content Skip to complementary content

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.

  1. Create a new app and paste the Example load script into a new section in the Data load editor. Then, load the data.

  2. Switch to sheet view. In the sheet properties, set Grid spacing to 42.

  3. Drag a Filter pane onto the sheet.

  4. Click Add dimension. Select Country.

  5. In the properties panel, click Add field. Select Item Type.

  6. Using the Add field button, add four other dimensions as listboxes:

    • Order Year
    • Order Priority

    • Region

    • Sales Channel

  7. One by one, expand each listbox you just added and set Presentation > Collapse listbox to Always.

  8. In the properties panel, expand AppearancePresentation.

  9. Click Palette Styling.

  10. 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

  11. In the Listboxes tab, set the following properties:

    • Font size for Header: 14px

  12. 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

Filter pane in analysis mode, in a fully collapsed state

Drawer-style filter pane with dimensions list expanded

Filter pane in analysis mode, with the 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.

  1. Create a new app and paste the Example load script into a new section in the Data load editor. Then, load the data.

  2. Switch to sheet view and drag a Filter pane onto the sheet.

  3. Click Add dimension. Select Item Type.

  4. Click the Item Type listbox to expand its properties.

  5. Expand Presentation.

  6. Turn on the Histogram setting.

  7. Use the Show frequency drop down menu to select Relative frequency (%).

  8. Set Collapse listbox to Never.

  9. Expand Sorting.

  10. Set the Sorting to Custom.

  11. Clear all options and turn on Sort by expression.

  12. Select Descending.

  13. Under Expression, enter the following expression:

    Count([Item Type])
  14. In the properties panel, expand AppearanceGeneral.

  15. Turn off Show titles.

  16. Expand AppearancePresentation.

  17. Click PaletteStyling.

  18. In the Listboxes tab, set the following properties:

    • Header:

      • Font: Inter, sans-serif

      • Font size: 18px

    • Content:

      • Font: Inter, sans-serif

  19. 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.

Filter pane in analysis mode, with histogram.

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.

  1. Create a new app and paste the Example load script into a new section in the Data load editor. Then, load the data.

  2. Switch to sheet view and drag a Filter pane onto the sheet.

  3. Click Add dimension. Select Item Type.

  4. Click the Item Type listbox to expand its properties.

  5. Set Search to Hide.

  6. Turn off Show Selection toolbar.

  7. Expand Presentation.

  8. Turn on Checkbox mode.

  9. In the properties panel, expand AppearanceGeneral.

  10. Turn off Show titles.

  11. Resize the filter pane to a small rectangular shape, for example, three by four squares.

Filter pane with focused design

Filter pane in analysis mode, using checkbox mode.

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.

  1. Create a new app and paste the Example load script into a new section in the Data load editor. Then, load the data.

  2. Switch to sheet view and drag a Filter pane onto the sheet.

  3. Click Add dimension. Select Order Year.

  4. Click the Order Year listbox to expand its properties.

  5. Turn off Show titles.

  6. Expand Presentation.

  7. Set Collapse listbox to Never.

  8. For Show data in, select Grid.

  9. Set Max visible columns to Custom.

  10. Set Max columns to 3.

  11. Add Order Quarter as a listbox in the filter pane.

  12. Click the Order Quarter listbox to expand its properties.

  13. Turn off Show titles.

  14. Expand Presentation.

  15. Set Collapse listbox to Never.

  16. For Show data in, select Grid.

  17. Set Order by to Columns.

  18. Set Max visible rows to Custom.

  19. Set Max columns to 1.

  20. Add Order Month as a listbox in the filter pane.

  21. Click the Order Month listbox to expand its properties.

  22. Turn off Show titles.

  23. Expand Presentation.

  24. Set Collapse listbox to Never.

  25. For Show data in, select Grid.

  26. Set Max visible columns to Custom.

  27. Set Max columns to 4.

  28. In the properties panel, expand AppearanceGeneral.

  29. Turn off Show titles.

  30. In the properties panel, expand AppearancePresentation.

  31. Click PaletteStyling.

  32. In the Filter pane tab, set the following properties:

    • Background color: #83af9b

  33. 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

  34. Resize the filter pane to a size that works well for the display—for example, three by three.

Filter pane with grid design

Filter pane in analysis mode, using grid mode.

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

Layout container with multiple grid-style filter panes.

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

  1. Create a new app and paste the example data into a new section in the Data load editor. Then, load the data.

  2. Switch to sheet view and drag a Filter pane onto the sheet.

  3. Click Add dimension. Select Item Type.

  4. In the properties panel, click Add field. Select Order Year.

  5. Using the Add field button, add three other dimensions as listboxes:

    • Order Priority

    • Region

    • Sales Channel

  6. In the properties panel, expand AppearanceGeneral.

  7. Turn off Show titles.

  8. Expand AppearancePresentation.

  9. Click PaletteStyling.

  10. In the Filter pane tab, set the following properties:

    • Shadow: Small, Hex code #000000

  11. 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

  12. 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

Filter pane with selection states reflecting brand colors

Example load script

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – please let us know!