Unlike choropleth maps, cartograms encode data using area rather than color, resulting in distorted geographic boundaries. In this example, states are rescaled around their centroid, preserving local shape but not topology. Inspired by Zachary Johnson. Non-continguous cartogram design invented by Judy Olsen. U.S. state and county boundaries from the U.S. Census Bureau, simplified using GDAL and MapShaper.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function run_demo() { | |
var k = new goog.ds.JsDataSource([], 'mypath'); | |
goog.ds.DataManager.getInstance().addListener(function (a,b) {console.log(a,b);}, k.getDataPath() + '/fi'); | |
k.setChildNode('fee', {'data': 1}); | |
k.setChildNode('fi', {'data': 2}); | |
k.setChildNode('fo', {'data': 3}); | |
k.setChildNode('fum', {'data': 4}); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
L1 cache reference 0.5 ns | |
Branch mispredict 5 ns | |
L2 cache reference 7 ns | |
Mutex lock/unlock 25 ns | |
Main memory reference 100 ns | |
Compress 1K bytes with Zippy 3,000 ns | |
Send 2K bytes over 1 Gbps network 20,000 ns | |
Read 1 MB sequentially from memory 250,000 ns | |
Round trip within same datacenter 500,000 ns | |
Disk seek 10,000,000 ns |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.v2.js"></script> | |
<style type="text/css"> | |
svg { | |
border:1px solid gray | |
} | |
#countries path { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// http://www.html5rocks.com/en/tutorials/file/dndfiles/ | |
d3.select('svg') | |
.on('dragover', handleDragOver) | |
.on('drop', handleFileSelect) | |
; | |
function handleFileSelect() { | |
var event = d3.event | |
, files = event.dataTransfer.files // FileList object | |
, about = [] |
Testing the new antemeridian cutting in the d3.geo.projection plugin.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta http-equiv="Content-type" content="text/html; charset=utf-8"> | |
<title>Testing Pie Chart</title> | |
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.js?2.1.3"></script> | |
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.geom.js?2.1.3"></script> | |
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.layout.js?2.1.3"></script> | |
<style type="text/css"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
update failed for AnAction with ID=floobits.actions.RequestEditPermissions | |
java.lang.NullPointerException | |
at floobits.actions.RequestEditPermissions.update(RequestEditPermissions.java:23) | |
at com.intellij.openapi.actionSystem.ex.ActionUtil.performDumbAwareUpdate(ActionUtil.java:111) | |
at com.intellij.openapi.actionSystem.impl.Utils.a(Utils.java:187) | |
at com.intellij.openapi.actionSystem.impl.Utils.expandActionGroup(Utils.java:138) | |
at com.intellij.openapi.actionSystem.impl.Utils.expandActionGroup(Utils.java:85) | |
at com.intellij.openapi.actionSystem.impl.Utils.fillMenu(Utils.java:279) | |
at com.intellij.openapi.actionSystem.impl.ActionMenu.g(ActionMenu.java:281) | |
at com.intellij.openapi.actionSystem.impl.ActionMenu.access$400(ActionMenu.java:41) |
OlderNewer