Skip to content

Instantly share code, notes, and snippets.

@SpaceActuary
SpaceActuary / README.md
Last active May 12, 2016 15:56 — forked from mbostock/.block
Choropleth Scales

This choropleth encodes unemployment rates from 2008 with a quantize scale ranging from 0 to 15%. A threshold scale is a useful alternative for coloring arbitrary ranges.

<html>
<head>
<script src="http://d3js.org/d3.v3.min.js"></script>
<!-- <script src="http://www.jstat.org/jstat-1.0.0.min.js"></script> -->
<!-- above source is down, need to build our own jstat (https://github.com/jstat/jstat), meanwhile, use unreliable mirror: -->
<script src="jstat.min.js"></script>
</head>
<body>
<div id="d3"></div>
<script type="text/javascript">
@SpaceActuary
SpaceActuary / index.html
Last active December 21, 2015 17:08 — forked from mbostock/.block
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<title>Production Metrics Graph</title>
<script src="http://d3js.org/d3.v3.min.js" charset="utf-8"></script>
<!--script type="text/javascript" src="http://mbostock.github.com/d3/d3.js?1.25.0"></script-->
<!--script type="text/javascript" src="http://mbostock.github.com/d3/d3.geom.js?1.25.0"></script-->
<!--script type="text/javascript" src="http://mbostock.github.com/d3/d3.layout.js?1.25.0"></script-->
<style type="text/css">