liveBook · Manning

Filtering

As explained in Everyday Data Visualization

A filter is a rule or control that restricts a dataset or visualization to records or values satisfying specified criteria.

A filter limits a visualization to the records that match a chosen criterion. In an interactive dashboard, give people an overview first, then let them filter away distractions and request details about what remains. That sequence helps them find their bearings before narrowing their focus. section 7.2.1

Make filters helpful rather than a maze of controls:

  • In linked menus, show values relevant to the current selection. If a species selection leaves unrelated families available, people may question the data rather than the menu. section 7.1.4
  • Keep choices within useful bounds—for example, give a date picker a minimum and maximum date so people cannot select an irrelevant period. section 7.1.4
  • Provide an obvious way to undo a selection and clear every filter at once. Nobody should have to refresh the page after filtering into a corner. section 7.1.6
  • Place controls where your users expect them, and document whether menus show only relevant values or every available value. section 7.1.2 section 8.4.4

A click that filters several charts

Clicking one segment’s bar can filter a line chart, a donut chart, and another bar chart to that same segment. This cross-filtering lets a single selection carry through the dashboard. section 7.1.2

Table 7.1 Biological classification for a handful of species in the Carnivora order, which is in the domain Eukarya, kingdom Animalia, and phylum Mammalia—that is, they’re all mammals. (view table figure)

Family

Genus

Species

Better known as

Canidae

Canis

Latrans

Coyote

Canidae

Canis

Lupus

Gray wolf

Canidae

Canis

Familiaris

Domestic dog

Canidae

Vulpes

Vulpes

Red fox

Felidae

Felis

Catus

Domestic cat

The family–genus–species table shows why linked menus need relevant values: selecting the domestic cat should not leave the dog family looking like a compatible choice. section 7.1.4

How Everyday Data Visualization covers it

How deep it goes
Explains linked selections, valid date choices, and recovery controls, but stops short of step-by-step implementation.
Examples
Uses family–genus–species menus, a bounded date picker, and a bar selection that filters multiple charts.
What you can do after
Operate/configure it by showing relevant filter values, bounding date choices, and providing undo and clear-all controls.
How it connects
Connects filtering to the Visual Information-Seeking Mantra, cross-filtering, and details on demand.

Also explained in

Compare how 34 books explain filtering →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Everyday Data Visualization. The section links point to the parts of the book it draws on.