Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

grid_map

A gridded heat map using D3.

Example

queue()
  .defer(d3.json, "/us.json")
  .defer(d3.csv, "/data/2005-2014_torn.csv")
  .await(function(error, usData, tornadoes) {
    if (error) throw error;

    var coordinates = tornadoes.map(function(d) {
      if (d.slon && d.slat) {
        return projection([parseFloat(d.slon), parseFloat(d.slat)]);
      };
    });
    coordinates = coordinates.filter(function(c) { return c != null });

    GridMap.drawMap(mapSvg, usData);
    GridMap.drawCells(mapSvg, coordinates, cellSize);
    // GridMap.drawPoints(mapSvg, coordinates);
})

About

gridded heat map with d3

Resources

Releases

No releases published

Packages

No packages published
You can’t perform that action at this time.