Extent indicator globe using d3.geo.orthographic and radial gradients.
Slippy map code from:
http://bl.ocks.org/3943330 by tmcw
http://bl.ocks.org/4132797 by mbostock
Map tiles from Stamen
| testing from iGist |
| module.exports = function( grunt ) { | |
| 'use strict'; | |
| // | |
| // Grunt configuration: | |
| // | |
| // https://github.com/cowboy/grunt/blob/master/docs/getting_started.md | |
| // | |
| grunt.initConfig({ | |
| // Project configuration |
| #star-five { | |
| margin: 50px 0; | |
| position: relative; | |
| display: block; | |
| color: red; | |
| width: 0px; | |
| height: 0px; | |
| border-right: 100px solid transparent; | |
| border-bottom: 70px solid red; | |
| border-left: 100px solid transparent; |
| var dataset = []; | |
| for (var i = 0; i < 25; i++) { | |
| var newNumber = Math.random() * 30; | |
| dataset.push(newNumber); | |
| } | |
| d3.select(".container").selectAll("div") | |
| .data(dataset) | |
| .enter() |
| import nflgame | |
| allweeks = nflgame.games(2012) | |
| players = nflgame.combine(allweeks) | |
| rushers = players.rushing() | |
| top10 = rushers.sort("rushing_yds").limit(10) | |
| top10.csv('top10rushers.csv') |
Extent indicator globe using d3.geo.orthographic and radial gradients.
Slippy map code from:
http://bl.ocks.org/3943330 by tmcw
http://bl.ocks.org/4132797 by mbostock
Map tiles from Stamen
| :%!python -m json.tool |
| <!DOCTYPE html> | |
| <!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]--> | |
| <!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]--> | |
| <!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]--> | |
| <!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]--> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | |
| <title></title> | |
| <style> |