D3
OG
Old school D3 from simpler times
All examples
By author
By category
About
octaviomtz
Full window
Github gist
Chihuahua population of the four counties with most inhabitants
<!doctype html> <html lang="en"> <head> <meta charset="utf-8" /> <title>Howework 4 | Octavio</title> <script type="text/javascript" src="https://d3js.org/d3.v3.min.js"></script> <script src="script1.js"></script> <style type="text/css"> body { margin: 0; background-color: #bbccbb; font-family: Helvetica, Arial, sans-serif; } #container { width: 600px; margin-left: auto; margin-right: auto; margin-top: 50px; padding: 50px; background-color: #ffffff; box-shadow: 3px 3px 5px 6px #000; } #title { width: 800px; margin-left: auto; margin-right: auto; } #someText { width: 800px; margin-left: auto; margin-right: auto; font-family: Helvetica, Arial, sans-serif; } path:hover { fill: #0d3; } </style> </head> <body> <h1 id="title">Counties of Chihuahua (south of Texas) </h1> <div id="container"></div> <div id="someText"> <p>The .shp file was obtained from <a href="https://www.numeroslocos.com/2013/07/10/shapefile/">here</a> and converted in mapshaper.org <br> The colors of the counties don't mean anything in particular. The pink circles represent the population of the four counties with most inhabitants. </p> </div> <script src="script1.js"></script> </body> </html>
Modified
http://d3js.org/d3.v3.min.js
to a secure url
https://d3js.org/d3.v3.min.js