liveBook · Manning

Cross-highlighting

As explained in D3.js in Action, Third Edition

Cross-highlighting is an interaction technique in which selecting or focusing one visual element highlights related elements in another view.

Cross-highlighting connects views of the same data. Selecting a place or period in one view changes which related records stand out in another. Plan it around a question the viewer wants to answer, such as how a location relates to events or artistic production. section 14.6 section 8.7

Link a timeline to paintings

A timeline shows periods when Van Gogh lived in different cities. Select a period, and only paintings created during that period remain visible. The interaction makes the connection between the timeline and the paintings explorable. section 14.6

Figure 14.20 When a period is selected on the timeline, only the paintings created during that period are visible on the visualization.
figure

The selected timeline period narrows the paintings shown in the visualization. section 14.6

How D3.js in Action, Third Edition covers it

How deep it goes
Explains the interaction through planning questions and visible results, but defers event-handling implementation.
Examples
Shows a selected timeline period revealing its paintings and a country map filtering internet blackout events.
What you can do after
Practice/perform interaction planning by identifying viewer questions that linked selections could answer.
How it connects
Links cross-highlighting to timelines, maps, filtering, tooltips, and interactive data visualization.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of D3.js in Action, Third Edition. The section links point to the parts of the book it draws on.