Linked Brushing between two charts
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 descriptionBuilt 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>