Skip to content

Instantly share code, notes, and snippets.

View brendansudol's full-sized avatar

Brendan Sudol brendansudol

View GitHub Profile
(function() {
var orange = '#ff8c00',
navy = '#0d3268';
// defined textures
var t1 = textures.lines()
.orientation("6/8")
.stroke(orange)
.background(navy);
[
{
"name":"Ram",
"asp":{
"id":"Model",
"val":[
{
"name":"1500",
"asp":{
"id":"Year",
[
{
"name":"Kaiser",
"asp":{
"id":"Model",
"val":[
{
"name":"Carolina",
"asp":{
"id":"Year",
[
{
"name":"Eagle",
"asp":{
"id":"Model",
"val":[
{
"name":"2000 GTX",
"asp":{
"id":"Year",
[
{
"name":"AC",
"asp":{
"id":"Model",
"val":[
{
"name":"427",
"asp":{
"id":"Year",
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
# C extensions
*.so
# Distribution / packaging
.Python
env/

== List ==

{| class="wikitable sortable" ! CC* ! Coordinates*

<!DOCTYPE html>
<!-- saved from url=(0014)about:internet -->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta http-equiv="x-ua-compatible" content="IE=9" >
<title>Title</title>
(function(){
// select grouped radio button (since i couldn't seem to do it in markdown)
d3.select('input[value="grouped"]').property('checked', true);
var data = [
[
{x: 'A', y: 1102, z: 'Brazil'}, {x: 'B', y: 1507, z: 'Spain'}, {x: 'C', y: 1200, z: 'Columbia'}, {x: 'D', y: 1132, z: 'Uruguay'},
{x: 'E', y: 1113, z: 'Switzerland'}, {x: 'F', y: 1251, z: 'Argentina'}, {x: 'G', y: 1318, z: 'Germany'}, {x: 'H', y: 1098, z: 'Belgium'}
],
(function(){
var width = 660,
height = 460;
var edById = {},
nameById = {};
var formatNum = d3.format(",.0f"),
formatPercent = d3.format(",.0%");