Simplified Massachusetts map using https://gist.github.com/bycoffe/5871252, which uses d3.
It is updated to use d3 version 4.
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<style> | |
.links line { | |
stroke: #999; | |
stroke-opacity: 0.6; | |
} | |
.nodes circle { |
var DataDrivenInteraction = /** @class */ (function () { | |
function DataDrivenInteraction() { | |
} | |
DataDrivenInteraction.prototype.define = function (interactionName) { | |
return new DdiInteraction(interactionName); | |
}; | |
return DataDrivenInteraction; | |
}()); | |
var DdiInteraction = /** @class */ (function () { | |
function DdiInteraction(name) { |
<html> | |
<head> | |
<style> | |
body { | |
background: #000; | |
} | |
line { | |
stroke: #fff; | |
} | |
</style> |
<html> | |
<head> | |
</head> | |
<body> | |
<script src="two.js"></script> | |
<script src="main.js"></script> | |
</body> | |
</html> |
date | close | |
---|---|---|
1-May-12 | 58.13 | |
30-Apr-12 | 53.98 | |
27-Apr-12 | 67.00 | |
26-Apr-12 | 89.70 | |
25-Apr-12 | 99.00 | |
24-Apr-12 | 130.28 | |
23-Apr-12 | 166.70 | |
20-Apr-12 | 234.98 | |
19-Apr-12 | 345.44 |
<!DOCTYPE html> | |
<html lang="en"> | |
<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>Custom Shape Voronoi</title> | |
</head> | |
<body> |
<!DOCTYPE html> | |
<html lang="en"> | |
<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>Custom Shape Voronoi</title> | |
</head> | |
<body> |
Simplified Massachusetts map using https://gist.github.com/bycoffe/5871252, which uses d3.
It is updated to use d3 version 4.
This graph combines force directed graphs, zooming and dragging, and the explanation behind the graph is available here.
license: gpl-3.0 | |
height: 600 |