D3
OG
Old school D3 from simpler times
All examples
By author
By category
About
aaizemberg
Full window
Github gist
Radios censales del censo 2010, Argentina. (fuente: INDEC)
<!DOCTYPE html> <html> <head> <script src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.6/d3.min.js"></script> <meta charset="utf-8"> <title>INDEC | Censo 2010 | Radios Censales por provincia</title> </head> <body> <h1>por fín, era hora</h1> <h3>Censo 2010 | radios censales por provincia</h2> <div id="descarga"></div> <script> d3.tsv("https://gist.githubusercontent.com/aaizemberg/c87b90a81442864e8c28/raw/e6b96d133af67428d3122a2c2ac8d338f4531853/radios.tsv", function(tsv) { tsv.sort(function(a,b) { return d3.ascending(a.nombre, b.nombre); }); d3.select("div#descarga").selectAll("a").data(tsv).enter().append("a") .text( function(d,i) { return d.nombre; } ) .attr("href", function(d,i) { return d.url; } ) .append("br"); }); </script> <footer> <p>Sistema de Referencia Espacial: POSGAR 94, faja 3. <a href="https://spatialreference.org/ref/epsg/22183/">EPSG:22183</a></p> </footer> </body> </html>
https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.6/d3.min.js