Skip to main content
100%

Click to zoom with table and map in D3

✓ Published0🌍 Public
SSaminu
Last edited Jan 7, 2017
Created on Jan 7, 2017

This interactive D3 visualization pairs a choropleth map of Ireland with a sortable table of referendum results. Users can click on either a county on the map or a row in the table to zoom and highlight the selected region. The map uses `d3.geo.path` with a Mercator projection, while the table is built with `d3.csv` and `d3.select`. Colors are applied via a `d3.scale.ordinal` based on ColorBrewer palettes, and zooming is animated through `g.transition().duration(750)`.

AI-generated description

An example of a click and zoom map using table cells as well as the map for Ireland. This is in response to this Stack Overflow question and the code at this page.

The visualisation also has the referendum results displ;ayed as a choropleth map, in green of course. The colours are from ColorBrewer.

forked from <a href='http://bl.ocks.org/phil-pedruco/'>phil-pedruco</a>'s block: <a href='http://bl.ocks.org/phil-pedruco/7557092'>Click to zoom with table and map in D3</a>

mit Licensed

Similar vizzes