SVG non-rotating version of a rotating transparent globe by Mike Bostock.
This file contains hidden or 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
| /*global d3:false */ | |
| /*jshint unused:false*/ | |
| /** | |
| * Initiate the sketchy library | |
| * @constructor | |
| */ | |
| var d3sketchy = function(){ | |
| /** |
This file contains hidden or 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
| source | target | edgeNumber | |
|---|---|---|---|
| Clinton '92 | Clinton Admin | 1 | |
| Clinton '92 | Clinton Admin | 2 | |
| Clinton '92 | Clinton Admin | 3 | |
| Clinton '92 | Kerry '04 | 1 | |
| Clinton '96 | Clinton Admin | 1 | |
| Clinton '96 | Obama '08 | 1 | |
| Clinton Admin | Clinton '96 | 1 | |
| Clinton Admin | Clinton Senate '00 | 1 | |
| Clinton Admin | Clinton Senate '00 | 2 |
This file contains hidden or 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
| source | target | weight | |
|---|---|---|---|
| 1 | 3 | 5 | |
| 1 | 8 | 3 | |
| 1 | 9 | 3 | |
| 1 | 12 | 3 | |
| 1 | 15 | 2 | |
| 1 | 23 | 3 | |
| 1 | 26 | 2 | |
| 1 | 37 | 2 | |
| 1 | 46 | 2 |
This file contains hidden or 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
| //Based on js_bintrees: | |
| // | |
| //https://github.com/vadimg/js_bintrees | |
| // | |
| //Copyright (C) 2011 by Vadim Graboys | |
| // | |
| //Permission is hereby granted, free of charge, to any person obtaining a copy | |
| //of this software and associated documentation files (the "Software"), to deal | |
| //in the Software without restriction, including without limitation the rights | |
| //to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
This file contains hidden or 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
| 1 | 3 | 5 | |
|---|---|---|---|
| 1 | 8 | 3 | |
| 1 | 9 | 3 | |
| 1 | 12 | 3 | |
| 1 | 15 | 2 | |
| 1 | 23 | 3 | |
| 1 | 26 | 2 | |
| 1 | 37 | 2 | |
| 1 | 46 | 2 |
This file contains hidden or 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
| 1 | 3 | 5 | |
|---|---|---|---|
| 1 | 8 | 3 | |
| 1 | 9 | 3 | |
| 1 | 12 | 3 | |
| 1 | 15 | 2 | |
| 1 | 23 | 3 | |
| 1 | 26 | 2 | |
| 1 | 37 | 2 | |
| 1 | 46 | 2 |
This file contains hidden or 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
| 1 | 3 | 5 | |
|---|---|---|---|
| 1 | 8 | 3 | |
| 1 | 9 | 3 | |
| 1 | 12 | 3 | |
| 1 | 15 | 2 | |
| 1 | 23 | 3 | |
| 1 | 26 | 2 | |
| 1 | 37 | 2 | |
| 1 | 46 | 2 |
This file contains hidden or 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
| 1 | 3 | 5 | |
|---|---|---|---|
| 1 | 8 | 3 | |
| 1 | 9 | 3 | |
| 1 | 12 | 3 | |
| 1 | 15 | 2 | |
| 1 | 23 | 3 | |
| 1 | 26 | 2 | |
| 1 | 37 | 2 | |
| 1 | 46 | 2 |
This file contains hidden or 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 a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c?c:a)},k,k.exports,a,b,c,d)}return c[g].exports}for(var f="function"==typeof require&&require,g=0;g<d.length;g++)e(d[g]);return e}({1:[function(a,b,c){var d=a("./legend");b.exports=function(){function a(a){var r=d.d3_calcType(c,j,k,m,p),s=a.selectAll(".cell").data(r.data),t=s.enter().append("g",".cell").attr("class","cell").style("opacity",1e-6);shapeEnter=t.append(e).attr("class","swatch"),shapes=s.select("g.cell "+e),s.exit().transition().style("opacity",0).remove(),d.d3_drawShapes(e,shapes,g,f,h,b),d.d3_addText(a,t,r.labels);var u=s.select("text"),v=shapes[0].map(function(a){return a.getBBox()});l?shapes.attr("class",function(a){return"swatch "+r.feature(a)}):"line"==e?shapes.style("stroke",r.feature):sha |