xxxxxxxxxx
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>US 2016 Election Results</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<!-- Optional theme -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous">
<link href="https://fonts.googleapis.com/css?family=Bungee+Hairline" rel="stylesheet">
<style>
.tract {
stroke: #777;
stroke-width: 0.025px;
pointer-events: all;
}
.tract:hover {
stroke: orange;
pointer-events: all;
}
.tract--active {
stroke: #FFC300;
}
.tract-border {
fill: none;
/*stroke: #777;*/
stroke-width: 0.05px;
pointer-events: none;
}
@media (max-width: 767px) {
.label {
transform: rotate(-45deg) translate(-10px, 25px);
}
}
.tract-border-state {
fill: none;
stroke: #757575;
stroke-width: 0.5px;
pointer-events: none;
}
.legend {
font-weight: bold;
font-family: 'Futura';
/* font-family: sans-serif;*/
font-size: 10pt;
}
.legendTitle {
font-weight: bold;
font-family: 'Futura';
font-size:11pt;
}
body {
background: #f5f5f5;
/*font-family: sans-serif;*/
}
.bar {
/* font-family: sans-serif;*/
font-weight: bold;
font-family: 'Futura';
font-size: 8pt;
}
#cityLegend {
/* font-family: sans-serif;*/
font-family: 'Futura';
text-anchor: middle;
}
.background {
fill: #f5f5f5;
fill-opacity: 0.7;
}
#details .background {
fill: #f5f5f5;
fill-opacity: 0.7;
}
svg {
width:100%;
}
</style>
</head>
<body>
<div class="row">
<div class="col-md-1 col-xs-1"></div>
<div class="col-md-10 col-xs-10">
<!-- <h4>Click on the map to explore</h4> -->
</div>
</div>
<svg ></svg>
</div>
<script src="https://d3js.org/d3.v4.min.js"></script>
<script src="https://d3js.org/d3-array.v1.min.js"></script>
<script src="https://d3js.org/d3-geo.v1.min.js"></script>
<script src="https://d3js.org/topojson.v2.min.js"></script>
<script src="https://d3js.org/d3-color.v1.min.js"></script>
<script src="https://d3js.org/d3-geo-projection.v1.min.js"></script>
<script src="https://d3js.org/d3-scale-chromatic.v1.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3-legend/2.11.0/d3-legend.min.js"></script>
<!-- Bootstrap -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<!-- Latest compiled and minified JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
<script src="main.js"></script>
<!-- credit for map template to https://bl.ocks.org/john-guerra. -->
</script>
</body>
https://d3js.org/d3.v4.min.js
https://d3js.org/d3-array.v1.min.js
https://d3js.org/d3-geo.v1.min.js
https://d3js.org/topojson.v2.min.js
https://d3js.org/d3-color.v1.min.js
https://d3js.org/d3-geo-projection.v1.min.js
https://d3js.org/d3-scale-chromatic.v1.min.js
https://cdnjs.cloudflare.com/ajax/libs/d3-legend/2.11.0/d3-legend.min.js
https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js
https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js