Heightmap with Hexagonal Binning
Each cell takes the mean value as its color.
Heightmap with Hexagonal Binning
Each cell takes the mean value as its color.
Data scraped from VFINX 500 holdings on August 25, 2014.
Based on the Treemap example.
Attempting to reimplement the stocks example from Cubism with the d3.horizon plugin.
A few notes so far:
The force-directed graph rendered in canvas instead of SVG.
Uses a second canvas with different fill colors for each country to detect which country is highlighted.
<!DOCTYPE HTML> | |
<head> | |
<script type="text/javascript" src="http://d3js.org/d3.v3.min.js"></script> | |
</head> | |
<body> | |
<canvas width=1000 height=600></canvas> | |
<script type="text/javascript"> | |
var canvas = d3.select("canvas").node(); | |
var xgrid = 10, | |
ygrid = 10, |
Added hover highlighting to Voronoi Mitchell’s best-candidate by searching for the closest point with d3.geom.quadtree.
An improvement would be rendering highlighted cells in a separate canvas, so that they could be cleared without redrawing the entire Voronoi. This version leaves artifacts behind which get eaten away by new voronoi cells.