This plot is part of an Assignment conducted for a course in Social Data Visualizations in DTU (Denmarks Unversity of Denmark). It represents data related to complaints in New York City.
- On mouse click the map zooms-in the neighborhood of interest and a tooltip is displaying the total number of complaints and the top complaint for that neighborhood.
- On mouse click on the neighborhood of interest for second time, the maps zooms-out
xxxxxxxxxx
<meta charset="utf-8">
<head>
<link rel="stylesheet" type="text/css" href="main.css">
</head>
<body>
<div id="map_4"></div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<script src="https://d3js.org/d3.v4.min.js" charset="utf-8"></script>
<script src="boroughs-zoom.js"></script>
</body>
</html>
Modified http://d3js.org/d3.v4.min.js to a secure url
https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js
https://d3js.org/d3.v4.min.js