Skip to main content
100%

Quienes votaron y quienes se abstuvieron

✓ Published0🌍 Public
AAdlopez2016
Last edited Nov 1, 2016
Created on Nov 1, 2016

This example visualizes voter participation in Santander, distinguishing between those who voted and those who abstained. It presents an interactive dendrogram and tree diagram, where internal nodes appear in red and leaves in blue, with a radio button to switch between the two layout modes. The visualization is built with D3 v4, using the `d3.stratify()` API to convert a CSV dataset into a hierarchy and `d3.cluster()`/`d3.tree()` to compute layouts. A smooth transition, driven by `d3.transition()`, animates the node positions when toggling between modes, with the data sourced from a local `data.csv` file.

AI-generated description

forked from <a href='http://bl.ocks.org/dougdowson/'>dougdowson</a>'s block: <a href='http://bl.ocks.org/dougdowson/9732115'>Reusable Bar Chart</a>

forked from <a href='http://bl.ocks.org/Adlopez2016/'>Adlopez2016</a>'s block: <a href='http://bl.ocks.org/Adlopez2016/733502e6201009db34f6035e60d91fe3'>Reusable Bar Chart</a>

forked from <a href='http://bl.ocks.org/Adlopez2016/'>Adlopez2016</a>'s block: <a href='http://bl.ocks.org/Adlopez2016/162af577b1b022e494cc30e8664ad561'>Quienes votaron y quienes se abstuvieron</a>

forked from <a href='http://bl.ocks.org/Adlopez2016/'>Adlopez2016</a>'s block: <a href='http://bl.ocks.org/Adlopez2016/97280ac81705f87d9360fb244dfc4694'>Quienes votaron y quienes se abstuvieron</a>

mit Licensed

Similar vizzes