Skip to main content
100%

Linked Brushing between two charts

✓ Published0🌍 Public
GGerardoFurtado
Last edited Jan 9, 2019
Created on Jan 9, 2019

This example demonstrates linked brushing between a bar chart and a scatter plot, both visualizing the same dataset. Hovering over a bar or circle highlights the corresponding country’s marks in both charts in pink, while all other marks remain grey, enabling quick cross-referencing. The bar chart displays column C, while the scatter plot shows columns A and B, with both rendered as SVG elements using D3 v5. The code uses `d3.csv` to load the data, `d3.scaleBand` and `d3.scaleLinear` for axes, and `mouseover`/`mouseout` events to synchronize highlighting across the two charts.

AI-generated description

Built with blockbuilder.org

forked from <a href='http://bl.ocks.org/gherka/'>gherka</a>'s block: <a href='http://bl.ocks.org/gherka/bc9ec7b0178a744fe75ebd7b50153312'>Linked Brushing between two charts</a>

mit Licensed

Similar vizzes