Skip to content

Instantly share code, notes, and snippets.

@kristianfreeman
Forked from mbostock/.block
Created January 6, 2013 23:58
Show Gist options
  • Save kristianfreeman/4471165 to your computer and use it in GitHub Desktop.
Save kristianfreeman/4471165 to your computer and use it in GitHub Desktop.

An edited version for usage with Last.fm data.

Bubble charts encode data in the area of circles. Although less perceptually-accurate than bar charts, they can pack hundreds of values into a small space. Implementation based on work by Jeff Heer. Data shows the Flare class hierarchy, also courtesy Jeff Heer.

{
"name": "flare",
"children": [
{
"name": "Flying Lotus",
"size": 302
},
{
"name": "Bon Iver",
"size": 206
},
{
"name": "Jonny Greenwood",
"size": 181
},
{
"name": "Shoji Meguro",
"size": 162
},
{
"name": "The Beatles",
"size": 149
},
{
"name": "Lullatone",
"size": 141
},
{
"name": "坂本龍一",
"size": 136
},
{
"name": "Shugo Tokumaru",
"size": 121
},
{
"name": "Clint Mansell",
"size": 118
},
{
"name": "Touché Amoré",
"size": 111
},
{
"name": "Ólafur Arnalds",
"size": 93
},
{
"name": "きゃりーぱみゅぱみゅ",
"size": 87
},
{
"name": "M83",
"size": 87
},
{
"name": "Incubus",
"size": 87
},
{
"name": "Sufjan Stevens",
"size": 83
},
{
"name": "Nine Inch Nails",
"size": 82
},
{
"name": "Coldplay",
"size": 79
},
{
"name": "John Coltrane",
"size": 71
},
{
"name": "Radiohead",
"size": 68
},
{
"name": "Foo Fighters",
"size": 67
},
{
"name": "Capsule",
"size": 65
},
{
"name": "The Dismemberment Plan",
"size": 60
},
{
"name": "Trent Reznor and Atticus Ross",
"size": 57
},
{
"name": "Can",
"size": 56
},
{
"name": "Owl City",
"size": 54
},
{
"name": "Battles",
"size": 50
},
{
"name": "Circa Survive",
"size": 46
},
{
"name": "The Depreciation Guild",
"size": 44
},
{
"name": "Skrillex",
"size": 43
},
{
"name": "of Montreal",
"size": 43
},
{
"name": "Moving Mountains",
"size": 43
},
{
"name": "Miles Davis",
"size": 42
},
{
"name": "The Long Winters",
"size": 40
},
{
"name": "Perfume",
"size": 40
},
{
"name": "Cowboy Bebop CD BOX",
"size": 40
},
{
"name": "My Bloody Valentine",
"size": 39
},
{
"name": "The Pains of Being Pure at Heart",
"size": 38
},
{
"name": "Godspeed You! Black Emperor",
"size": 38
},
{
"name": "Lights",
"size": 37
},
{
"name": "deadmau5",
"size": 37
},
{
"name": "Grizzly Bear",
"size": 37
},
{
"name": "Death Cab for Cutie",
"size": 36
},
{
"name": "Beck",
"size": 36
},
{
"name": "J Dilla",
"size": 34
},
{
"name": "Madvillain",
"size": 34
},
{
"name": "The Flaming Lips",
"size": 33
},
{
"name": "James Blake",
"size": 30
},
{
"name": "Blur",
"size": 30
},
{
"name": "Björk",
"size": 30
},
{
"name": "Fugazi",
"size": 30
},
{
"name": "Trent Reznor",
"size": 29
},
{
"name": "Bonobo",
"size": 29
},
{
"name": "Explosions in the Sky",
"size": 27
},
{
"name": "The Strokes",
"size": 27
},
{
"name": "Zedd",
"size": 27
},
{
"name": "R.E.M.",
"size": 26
},
{
"name": "Philip Glass",
"size": 26
},
{
"name": "Purity Ring",
"size": 25
},
{
"name": "David Lynch",
"size": 25
},
{
"name": "Shigeto",
"size": 25
},
{
"name": "Thrice",
"size": 24
},
{
"name": "Broken Social Scene",
"size": 24
},
{
"name": "Toe",
"size": 24
},
{
"name": "Dick Dale",
"size": 23
},
{
"name": "The Tallest Man on Earth",
"size": 23
},
{
"name": "Gorillaz",
"size": 23
},
{
"name": "Queens of the Stone Age",
"size": 23
},
{
"name": "Gotye",
"size": 23
},
{
"name": "Hella",
"size": 23
},
{
"name": "Austin Wintory",
"size": 23
},
{
"name": "Genesis",
"size": 23
},
{
"name": "Ellie Goulding",
"size": 22
},
{
"name": "Our Lady Peace",
"size": 21
},
{
"name": "Tyler, the Creator",
"size": 21
},
{
"name": "Alcest",
"size": 21
},
{
"name": "Thelonious Monk",
"size": 20
},
{
"name": "The Jet Age Of Tomorrow",
"size": 19
},
{
"name": "Soundgarden",
"size": 19
},
{
"name": "Wilco",
"size": 19
},
{
"name": "MUTEMATH",
"size": 19
},
{
"name": "AraabMUZIK",
"size": 19
},
{
"name": "TNGHT",
"size": 19
},
{
"name": "The Postal Service",
"size": 19
},
{
"name": "Ennio Morricone",
"size": 18
},
{
"name": "Daft Punk",
"size": 18
},
{
"name": "Alabama Shakes",
"size": 18
},
{
"name": "The Dave Brubeck Quartet",
"size": 18
},
{
"name": "Earl Sweatshirt",
"size": 18
},
{
"name": "Russian Circles",
"size": 18
},
{
"name": "Jonathan Coulton",
"size": 18
},
{
"name": "Girl Talk",
"size": 17
},
{
"name": "Taylor Swift",
"size": 17
},
{
"name": "Stereolab",
"size": 17
},
{
"name": "Hudson Mohawke",
"size": 17
},
{
"name": "La Dispute",
"size": 17
},
{
"name": "Charlie Parker",
"size": 17
},
{
"name": "Weezer",
"size": 17
},
{
"name": "Sigur Rós",
"size": 17
},
{
"name": "Frank Ocean",
"size": 16
},
{
"name": "Helios",
"size": 16
},
{
"name": "Anamanaguchi",
"size": 16
},
{
"name": "Sabrepulse",
"size": 15
},
{
"name": "Devendra Banhart",
"size": 15
},
{
"name": "Don Caballero",
"size": 15
},
{
"name": "Owen",
"size": 15
},
{
"name": "This Will Destroy You",
"size": 14
},
{
"name": "Dethklok",
"size": 14
},
{
"name": "Japandroids",
"size": 14
},
{
"name": "The White Stripes",
"size": 14
},
{
"name": "The National",
"size": 14
},
{
"name": "David Bowie",
"size": 14
},
{
"name": "S. Carey",
"size": 14
},
{
"name": "Taking Back Sunday",
"size": 14
},
{
"name": "City and Colour",
"size": 14
},
{
"name": "Elliott Smith",
"size": 14
},
{
"name": "Justice",
"size": 14
},
{
"name": "Com Truise",
"size": 14
},
{
"name": "world's end girlfriend",
"size": 14
},
{
"name": "Kashiwa Daisuke",
"size": 13
},
{
"name": "Esbjörn Svensson Trio",
"size": 13
},
{
"name": "Washed Out",
"size": 13
},
{
"name": "Feed Me",
"size": 13
},
{
"name": "Steve Reich",
"size": 12
},
{
"name": "Port Blue",
"size": 12
},
{
"name": "The Cinematic Orchestra",
"size": 12
},
{
"name": "Rage Against the Machine",
"size": 12
},
{
"name": "Rachel's",
"size": 12
},
{
"name": "Lady Gaga",
"size": 12
},
{
"name": "The Smashing Pumpkins",
"size": 12
},
{
"name": "The Weeknd",
"size": 11
},
{
"name": "Bruce Springsteen",
"size": 11
},
{
"name": "Imogen Heap",
"size": 11
},
{
"name": "Jónsi",
"size": 11
},
{
"name": "Young Legionnaire",
"size": 11
},
{
"name": "Dave Brubeck",
"size": 11
},
{
"name": "Boards of Canada",
"size": 11
},
{
"name": "Streetlight Manifesto",
"size": 10
},
{
"name": "Native",
"size": 10
},
{
"name": "Regina Spektor",
"size": 10
},
{
"name": "Black Star",
"size": 10
},
{
"name": "Lionel Hampton",
"size": 10
},
{
"name": "Band of Skulls",
"size": 10
},
{
"name": "The Sound of Animals Fighting",
"size": 10
},
{
"name": "Tristeza",
"size": 10
},
{
"name": "Wavves",
"size": 10
},
{
"name": "Gaijin Games",
"size": 10
},
{
"name": "Sam Roberts",
"size": 10
},
{
"name": "José González",
"size": 10
},
{
"name": "Zolof The Rock & Roll Destroyer",
"size": 10
},
{
"name": "Porter Robinson",
"size": 10
},
{
"name": "Bloc Party",
"size": 10
},
{
"name": "Yellow Magic Orchestra",
"size": 10
},
{
"name": "Pearl Jam",
"size": 10
},
{
"name": "The Lonely Island",
"size": 9
},
{
"name": "Red Hot Chili Peppers",
"size": 9
},
{
"name": "Burial",
"size": 9
},
{
"name": "Ludovico Einaudi",
"size": 9
},
{
"name": "Bright Eyes",
"size": 9
},
{
"name": "Holy Other",
"size": 9
},
{
"name": "Michael Jackson",
"size": 9
},
{
"name": "Ludwig van Beethoven",
"size": 9
},
{
"name": "Death From Above 1979",
"size": 9
},
{
"name": "Pixies",
"size": 9
},
{
"name": "Steely Dan",
"size": 9
},
{
"name": "Sun Ra",
"size": 9
},
{
"name": "Del Tha Funkee Homosapien",
"size": 8
},
{
"name": "Rooftops",
"size": 8
},
{
"name": "The Receiving End Of Sirens",
"size": 8
},
{
"name": "Tim Hecker",
"size": 8
},
{
"name": "American Football",
"size": 8
},
{
"name": "The OneUps",
"size": 8
},
{
"name": "Menomena",
"size": 8
},
{
"name": "Belong",
"size": 8
},
{
"name": "System of a Down",
"size": 7
},
{
"name": "YOURCODENAMEIS:MILO",
"size": 7
},
{
"name": "Pavement",
"size": 7
},
{
"name": "Zomby",
"size": 7
},
{
"name": "DANGERDOOM",
"size": 7
},
{
"name": "Erik Satie",
"size": 7
},
{
"name": "...And You Will Know Us by the Trail of Dead",
"size": 7
},
{
"name": "Massive Attack",
"size": 7
},
{
"name": "The Radio Dept.",
"size": 7
},
{
"name": "Stars",
"size": 7
},
{
"name": "Bad Brains",
"size": 7
},
{
"name": "John Coltrane Quartet",
"size": 6
},
{
"name": "Darkthrone",
"size": 6
},
{
"name": "Jimmy Eat World",
"size": 6
},
{
"name": "Oneohtrix Point Never",
"size": 6
},
{
"name": "Spiritualized",
"size": 6
},
{
"name": "Gary Numan",
"size": 6
},
{
"name": "The xx",
"size": 6
},
{
"name": "Willits + Sakamoto",
"size": 6
},
{
"name": "Primus",
"size": 6
},
{
"name": "HIVE",
"size": 6
},
{
"name": "Manchester Orchestra",
"size": 6
},
{
"name": "The Knife",
"size": 6
},
{
"name": "Fleet Foxes",
"size": 6
},
{
"name": "Pelican",
"size": 6
},
{
"name": "Lowercase Noises",
"size": 6
},
{
"name": "Deerhunter",
"size": 6
},
{
"name": "A Tribe Called Quest",
"size": 6
},
{
"name": "Flying Lotus feat. Earl Sweatshirt&Captain Murphy",
"size": 6
},
{
"name": "Jack White",
"size": 6
},
{
"name": "Mitch Hedberg",
"size": 6
},
{
"name": "Andrew W.K.",
"size": 6
},
{
"name": "LCD Soundsystem",
"size": 6
},
{
"name": "Boy Eats Drum Machine",
"size": 6
},
{
"name": "Cake",
"size": 6
},
{
"name": "El Ten Eleven",
"size": 6
},
{
"name": "Rivers Cuomo",
"size": 6
},
{
"name": "Placebo",
"size": 6
},
{
"name": "The Heavy",
"size": 6
},
{
"name": "The Jimi Hendrix Experience",
"size": 6
},
{
"name": "Arcade Fire",
"size": 6
},
{
"name": "Duke Ellington",
"size": 6
},
{
"name": "Ozma",
"size": 6
},
{
"name": "Fang Island",
"size": 6
},
{
"name": "Matisyahu",
"size": 6
},
{
"name": "Paper Route",
"size": 6
},
{
"name": "Fatboy Slim",
"size": 5
},
{
"name": "Donald Fagen",
"size": 5
},
{
"name": "Downlink",
"size": 5
},
{
"name": "Asheru",
"size": 5
},
{
"name": "FaltyDL",
"size": 5
},
{
"name": "Penguin Cafe Orchestra",
"size": 5
},
{
"name": "Max Richter",
"size": 5
},
{
"name": "Passion Pit",
"size": 5
},
{
"name": "Arctic Monkeys",
"size": 5
},
{
"name": "Claude Debussy",
"size": 5
},
{
"name": "Nirvana",
"size": 5
},
{
"name": "Vince Guaraldi Trio",
"size": 5
},
{
"name": "Franz Ferdinand",
"size": 4
},
{
"name": "Pele",
"size": 4
},
{
"name": "Dungen",
"size": 4
},
{
"name": "Gil Scott-Heron",
"size": 4
},
{
"name": "Frank Sinatra",
"size": 4
},
{
"name": "Of Mice & Men",
"size": 4
},
{
"name": "The Felix Culpa",
"size": 4
},
{
"name": "Noisia",
"size": 4
},
{
"name": "Samurai Champloo",
"size": 4
},
{
"name": "Franz Joseph Haydn",
"size": 4
},
{
"name": "Knife Party",
"size": 4
},
{
"name": "Phil Collins",
"size": 4
},
{
"name": "Circle Takes the Square",
"size": 4
},
{
"name": "Takeshi Terauchi & The Bunnys",
"size": 4
},
{
"name": "Portishead",
"size": 4
},
{
"name": "Thursday",
"size": 4
},
{
"name": "The Libertines",
"size": 4
},
{
"name": "Datsik",
"size": 4
},
{
"name": "Cream",
"size": 4
},
{
"name": "Colin Stetson",
"size": 4
},
{
"name": "Buckethead",
"size": 4
},
{
"name": "The Black Keys",
"size": 4
},
{
"name": "Nico",
"size": 4
},
{
"name": "The Smiths",
"size": 4
},
{
"name": "Modern Life Is War",
"size": 4
},
{
"name": "Wolfmother",
"size": 4
},
{
"name": "Tim And Eric",
"size": 4
},
{
"name": "Led Zeppelin",
"size": 4
},
{
"name": "Yeah Yeah Yeahs",
"size": 4
},
{
"name": "Boris",
"size": 4
},
{
"name": "Boston",
"size": 4
},
{
"name": "Thom Yorke",
"size": 4
},
{
"name": "The Pillows",
"size": 4
},
{
"name": "Flanagan, Coltrane Burell",
"size": 4
},
{
"name": "SBTRKT",
"size": 4
},
{
"name": "Seth MacFarlane",
"size": 4
},
{
"name": "Billie Holiday",
"size": 3
},
{
"name": "UNKLE",
"size": 3
},
{
"name": "Slayer",
"size": 3
},
{
"name": "The Middle East",
"size": 3
},
{
"name": "The Presidents of the United States of America",
"size": 3
},
{
"name": "Black Sabbath",
"size": 3
},
{
"name": "The Police",
"size": 3
},
{
"name": "OutKast",
"size": 3
},
{
"name": "Venetian Snares",
"size": 3
},
{
"name": "Okkervil River",
"size": 3
},
{
"name": "Mos Def",
"size": 3
},
{
"name": "bigott",
"size": 3
},
{
"name": "Katy Perry",
"size": 3
},
{
"name": "Little Shawn",
"size": 3
},
{
"name": "Panda Bear",
"size": 3
},
{
"name": "Meat Puppets",
"size": 3
},
{
"name": "Oasis",
"size": 3
},
{
"name": "Modest Mouse",
"size": 3
},
{
"name": "The Fall of Troy",
"size": 3
},
{
"name": "Thelonious Monk Quartet",
"size": 3
},
{
"name": "トクマルシューゴ",
"size": 3
},
{
"name": "The Antlers",
"size": 3
},
{
"name": "PSY",
"size": 3
},
{
"name": "Jay-Z",
"size": 3
},
{
"name": "Excision & Downlink",
"size": 3
},
{
"name": "Joe Boyd Vigil",
"size": 3
},
{
"name": "Johannes Brahms",
"size": 3
},
{
"name": "Return to Forever",
"size": 3
},
{
"name": "La Roux",
"size": 3
},
{
"name": "Motion City Soundtrack",
"size": 3
},
{
"name": "Missy Elliott",
"size": 3
},
{
"name": "Jon Brion",
"size": 3
},
{
"name": "Chick Corea",
"size": 3
},
{
"name": "The Album Leaf",
"size": 3
},
{
"name": "久石譲",
"size": 3
},
{
"name": "Curtis Mayfield",
"size": 3
},
{
"name": "Burzum",
"size": 3
},
{
"name": "Samiyam",
"size": 3
},
{
"name": "The Raconteurs",
"size": 3
},
{
"name": "Ramona Falls",
"size": 3
},
{
"name": "Kool & The Gang",
"size": 3
},
{
"name": "Takehiko Yamada",
"size": 3
},
{
"name": "Commodores",
"size": 3
},
{
"name": "Descendents",
"size": 3
},
{
"name": "Ice Choir",
"size": 3
},
{
"name": "Pete Rock",
"size": 3
},
{
"name": "Jim Guthrie",
"size": 3
},
{
"name": "Sleigh Bells",
"size": 3
},
{
"name": "Eluvium",
"size": 3
},
{
"name": "Alice Coltrane",
"size": 3
},
{
"name": "Harvey Danger",
"size": 3
},
{
"name": "James Peel",
"size": 3
},
{
"name": "Blind Melon",
"size": 2
},
{
"name": "Donna Loren",
"size": 2
},
{
"name": "Frightened Rabbit",
"size": 2
},
{
"name": "The Twilight Sad",
"size": 2
},
{
"name": "Editors",
"size": 2
},
{
"name": "The Ventures",
"size": 2
},
{
"name": "We Are Knuckle Dragger",
"size": 2
},
{
"name": "Grammatics",
"size": 2
},
{
"name": "William Basinski",
"size": 2
},
{
"name": "Sieber, Kammen, Fulton and Schatz",
"size": 2
},
{
"name": "Dagmar Krug",
"size": 2
},
{
"name": "Kill the Noise",
"size": 2
},
{
"name": "Feed Me & Gemini",
"size": 2
},
{
"name": "Raine Maida",
"size": 2
},
{
"name": "Band of Horses",
"size": 2
},
{
"name": "Dillon Francis",
"size": 2
},
{
"name": "Of Monsters and Men",
"size": 2
},
{
"name": "Gates",
"size": 2
},
{
"name": "Avicii",
"size": 2
},
{
"name": "Swedish House Mafia",
"size": 2
},
{
"name": "Fiona Apple",
"size": 2
},
{
"name": "Koji",
"size": 2
},
{
"name": "David Reiman",
"size": 2
},
{
"name": "A Silver Mt. Zion",
"size": 2
},
{
"name": "Foreign Beggars feat. Noisia",
"size": 2
},
{
"name": "Dean Martin",
"size": 2
},
{
"name": "Glenn Branca",
"size": 2
},
{
"name": "Gwen Stefani",
"size": 2
},
{
"name": "M.I.A.",
"size": 2
},
{
"name": "Two Door Cinema Club",
"size": 2
},
{
"name": "Set Fire to Flames",
"size": 2
},
{
"name": "Balmorhea",
"size": 2
},
{
"name": "30 Seconds to Mars",
"size": 2
},
{
"name": "The Decemberists",
"size": 2
},
{
"name": "Minus the Bear",
"size": 2
},
{
"name": "Saskrotch",
"size": 2
},
{
"name": "Ella Fitzgerald",
"size": 2
},
{
"name": "Paul Hegarty",
"size": 2
},
{
"name": "Aphex Twin",
"size": 2
},
{
"name": "Justin Timberlake",
"size": 2
},
{
"name": "TV on the Radio",
"size": 2
},
{
"name": "Cancer Bats",
"size": 2
},
{
"name": "Thomas Newman",
"size": 2
},
{
"name": "Further Seems Forever",
"size": 2
},
{
"name": "The Stooges",
"size": 2
},
{
"name": "The Velvet Underground",
"size": 2
},
{
"name": "MGMT",
"size": 2
},
{
"name": "Grails",
"size": 2
},
{
"name": "Wu-Tang Clan",
"size": 2
},
{
"name": "Humans",
"size": 2
},
{
"name": "Gene 'Noizepunk' Pritsker",
"size": 2
},
{
"name": "Crystal Castles",
"size": 2
},
{
"name": "Nina Simone",
"size": 2
},
{
"name": "Electric Skychurch",
"size": 2
},
{
"name": "Beastie Boys",
"size": 2
},
{
"name": "Mogwai",
"size": 2
},
{
"name": "Zero 7",
"size": 2
},
{
"name": "Hüsker Dü",
"size": 2
},
{
"name": "The Vines",
"size": 2
},
{
"name": "Sleater-Kinney",
"size": 2
},
{
"name": "Gnarls Barkley",
"size": 2
},
{
"name": "Dinosaur Jr.",
"size": 2
},
{
"name": "Vangelis",
"size": 2
},
{
"name": "The Pharcyde",
"size": 2
},
{
"name": "Street Sweeper Social Club",
"size": 2
},
{
"name": "Jay Electronica",
"size": 2
},
{
"name": "Modwheelmood",
"size": 2
},
{
"name": "Kevin Macleod",
"size": 2
},
{
"name": "Jimmy Fallon",
"size": 2
},
{
"name": "Chikayo Fukuda",
"size": 2
},
{
"name": "Swimming with Dolphins",
"size": 2
},
{
"name": "Benny Benassi",
"size": 2
},
{
"name": "Alexisonfire",
"size": 2
},
{
"name": "Brian Eno",
"size": 2
},
{
"name": "The Roots",
"size": 2
},
{
"name": "Marcus Miller",
"size": 2
},
{
"name": "Nosaj Thing",
"size": 2
},
{
"name": "Ingrid Michaelson",
"size": 2
},
{
"name": "Spoon",
"size": 2
},
{
"name": "Saosin",
"size": 2
},
{
"name": "Aṣa",
"size": 2
},
{
"name": "Fennesz",
"size": 2
},
{
"name": "Mastodon",
"size": 2
},
{
"name": "Paul Simon",
"size": 2
},
{
"name": "The Cure",
"size": 2
},
{
"name": "Sonic Youth",
"size": 2
},
{
"name": "Benny Goodman",
"size": 2
},
{
"name": "Red Norvo",
"size": 2
},
{
"name": "The Clash",
"size": 2
},
{
"name": "Glenn Miller",
"size": 2
},
{
"name": "Handsome Boy Modeling School",
"size": 2
},
{
"name": "Sigur Ros",
"size": 2
},
{
"name": "You Look Nice Today",
"size": 2
},
{
"name": "blink-182",
"size": 2
},
{
"name": "Kayeff",
"size": 2
},
{
"name": "Nobuo Uematsu",
"size": 2
},
{
"name": "The Verve",
"size": 2
},
{
"name": "Tenacious D",
"size": 2
},
{
"name": "Muse",
"size": 2
},
{
"name": "Wheatus",
"size": 2
},
{
"name": "Pretty Lights",
"size": 2
},
{
"name": "Stan Getz & João Gilberto",
"size": 2
},
{
"name": "Tricky",
"size": 1
},
{
"name": "Danger Mouse",
"size": 1
},
{
"name": "LaBerge",
"size": 1
},
{
"name": "Sandro Perri",
"size": 1
},
{
"name": "Jimmy Smith",
"size": 1
},
{
"name": "Nacho Sotomayor",
"size": 1
},
{
"name": "Maps",
"size": 1
},
{
"name": "Dropkick Murphys",
"size": 1
},
{
"name": "Falco",
"size": 1
},
{
"name": "Jubilee",
"size": 1
},
{
"name": "Anthrax",
"size": 1
},
{
"name": "Four Tet",
"size": 1
},
{
"name": "Imelda May",
"size": 1
},
{
"name": "Yann Tiersen",
"size": 1
},
{
"name": "Torpedo Boyz",
"size": 1
},
{
"name": "Guadalupe Plata",
"size": 1
},
{
"name": "Hola a todo el mundo",
"size": 1
},
{
"name": "Mumford & Sons",
"size": 1
},
{
"name": "Social Distortion",
"size": 1
},
{
"name": "Brett Terpstra",
"size": 1
},
{
"name": "Woodkid",
"size": 1
},
{
"name": "Hot Chip",
"size": 1
},
{
"name": "Black Feather",
"size": 1
},
{
"name": "Yelle",
"size": 1
},
{
"name": "Refused",
"size": 1
},
{
"name": "The Pretty Things",
"size": 1
},
{
"name": "Iggy Pop",
"size": 1
},
{
"name": "Loch Lomond",
"size": 1
},
{
"name": "Blue Foundation",
"size": 1
},
{
"name": "Scooter",
"size": 1
},
{
"name": "Benny Goodman and His Orchestra",
"size": 1
},
{
"name": "Mano Negra",
"size": 1
},
{
"name": "The Horrors",
"size": 1
},
{
"name": "Edwin Starr",
"size": 1
},
{
"name": "Ram Di Dam",
"size": 1
},
{
"name": "Fujiya & Miyagi",
"size": 1
},
{
"name": "2 Chainz",
"size": 1
},
{
"name": "Joe Satriani",
"size": 1
},
{
"name": "Deadmau5 feat. Chris James",
"size": 1
},
{
"name": "Röyksopp",
"size": 1
},
{
"name": "The Shins",
"size": 1
},
{
"name": "Cypress Hill",
"size": 1
},
{
"name": "Carla Ulbrich",
"size": 1
},
{
"name": "Toots and The Maytals",
"size": 1
},
{
"name": "宇多田ヒカル",
"size": 1
},
{
"name": "The V Motion Project",
"size": 1
},
{
"name": "Atmosphere",
"size": 1
},
{
"name": "The Raveonettes",
"size": 1
},
{
"name": "Cansei de Ser Sexy",
"size": 1
},
{
"name": "Ludo",
"size": 1
},
{
"name": "Micachu",
"size": 1
},
{
"name": "Silversun Pickups",
"size": 1
},
{
"name": "12th Planet",
"size": 1
},
{
"name": "The Rentals",
"size": 1
},
{
"name": "Martyn",
"size": 1
},
{
"name": "Mutilation Rites",
"size": 1
},
{
"name": "Teebs",
"size": 1
},
{
"name": "Meg",
"size": 1
},
{
"name": "Eels",
"size": 1
},
{
"name": "cra",
"size": 1
},
{
"name": "Anoraak",
"size": 1
},
{
"name": "SOIL&“PIMP”SESSIONS",
"size": 1
},
{
"name": "The RZA/Charles Bernstein",
"size": 1
},
{
"name": "The 5.6.7.8's",
"size": 1
},
{
"name": "Santa Esmeralda",
"size": 1
},
{
"name": "布袋寅泰",
"size": 1
},
{
"name": "Al Hirt",
"size": 1
},
{
"name": "Isaac Hayes",
"size": 1
},
{
"name": "Vincent Tempera & Orchestra (Featuring The RZA)",
"size": 1
},
{
"name": "Kill Bill Soundtrack",
"size": 1
},
{
"name": "Luis Bacalov",
"size": 1
},
{
"name": "Charlie Feathers",
"size": 1
},
{
"name": "Nancy Sinatra",
"size": 1
},
{
"name": "Bernard Herrmann",
"size": 1
},
{
"name": "Anthony Green",
"size": 1
},
{
"name": "The Go! Team",
"size": 1
},
{
"name": "Incredible Bongo Band",
"size": 1
},
{
"name": "Chase",
"size": 1
},
{
"name": "Chet Baker",
"size": 1
},
{
"name": "Mechanical Me",
"size": 1
},
{
"name": "Pilote",
"size": 1
},
{
"name": "Bud Powell",
"size": 1
},
{
"name": "IGN Staff",
"size": 1
},
{
"name": "Joe South",
"size": 1
},
{
"name": "The Disneyland Chorus",
"size": 1
},
{
"name": "The Hundred in the Hands",
"size": 1
},
{
"name": "Nicolas Jaar",
"size": 1
},
{
"name": "Louis Jordan",
"size": 1
},
{
"name": "RJD2",
"size": 1
},
{
"name": "DJ Shadow",
"size": 1
},
{
"name": "The Phenomenal Handclap Band",
"size": 1
},
{
"name": "Cage the Elephant",
"size": 1
},
{
"name": "Electric Six",
"size": 1
},
{
"name": "Lapalux",
"size": 1
},
{
"name": "Grouplove",
"size": 1
},
{
"name": "Kendrick Lamar",
"size": 1
},
{
"name": "The Cranberries",
"size": 1
},
{
"name": "Ladytron",
"size": 1
},
{
"name": "Justice ",
"size": 1
},
{
"name": "Los York's",
"size": 1
},
{
"name": "Mustafa Özkent",
"size": 1
},
{
"name": "Françoiz Breut",
"size": 1
},
{
"name": "Claudio Abbado",
"size": 1
},
{
"name": "Sunlounger",
"size": 1
},
{
"name": "VillaNaranjos",
"size": 1
},
{
"name": "Omnia",
"size": 1
},
{
"name": "The Wailers",
"size": 1
},
{
"name": "Géza Anda",
"size": 1
},
{
"name": "Van Halen",
"size": 1
},
{
"name": "Rebelution",
"size": 1
},
{
"name": "Nero",
"size": 1
},
{
"name": "Major Lazer",
"size": 1
},
{
"name": "Isao Tomita",
"size": 1
},
{
"name": "Michael Nyman",
"size": 1
},
{
"name": "Martha Argerich",
"size": 1
},
{
"name": "Datsik & Downlink",
"size": 1
},
{
"name": "Daniel Barenboim",
"size": 1
},
{
"name": "Angels & Airwaves",
"size": 1
},
{
"name": "Tony Bennett & Lady Gaga",
"size": 1
},
{
"name": "Big Boi",
"size": 1
},
{
"name": "Biffy Clyro",
"size": 1
},
{
"name": "NOFX",
"size": 1
},
{
"name": "Morcheeba",
"size": 1
},
{
"name": "Fischerspooner",
"size": 1
},
{
"name": "Calvin Harris",
"size": 1
},
{
"name": "Rihanna",
"size": 1
},
{
"name": "Stone Temple Pilots",
"size": 1
},
{
"name": "Sebastian",
"size": 1
},
{
"name": "The Dwarf Chorus",
"size": 1
},
{
"name": "Flight of the Conchords",
"size": 1
},
{
"name": "Mophono",
"size": 1
},
{
"name": "The Spaceape",
"size": 1
},
{
"name": "King Midas Sound",
"size": 1
},
{
"name": "Slightly Stoopid",
"size": 1
},
{
"name": "Julie Andrews",
"size": 1
},
{
"name": "Kings of Leon",
"size": 1
},
{
"name": "Madlib",
"size": 1
},
{
"name": "Tears for Fears",
"size": 1
},
{
"name": "Miles Kane",
"size": 1
},
{
"name": "Keane",
"size": 1
},
{
"name": "Justice vs. Simian",
"size": 1
},
{
"name": "De La Soul",
"size": 1
},
{
"name": "1966 Live At The Sands Album Version",
"size": 1
},
{
"name": "The Beatles Revival Band",
"size": 1
},
{
"name": "Cee Lo Green",
"size": 1
},
{
"name": "Danny Elfman",
"size": 1
},
{
"name": "Kid Cudi",
"size": 1
},
{
"name": "Jane's Addiction",
"size": 1
},
{
"name": "Mark Keali'i Ho'omalu & North Shore Children’s Choir & Key Cygnetures",
"size": 1
},
{
"name": "Télépopmusik",
"size": 1
},
{
"name": "Hey Rosetta!",
"size": 1
},
{
"name": "m-flo",
"size": 1
},
{
"name": "James Baskett & Original Cast",
"size": 1
},
{
"name": "Wham!",
"size": 1
},
{
"name": "Spotify",
"size": 1
},
{
"name": "Dolly Parton",
"size": 1
},
{
"name": "Jerry Colonna, Kathryn Beaumont & Ed Wynn",
"size": 1
},
{
"name": "Spyro Gyra",
"size": 1
},
{
"name": "This Will Destroy Us",
"size": 1
},
{
"name": "Faith No More",
"size": 1
},
{
"name": "Behold... the Arctopus",
"size": 1
},
{
"name": "Tony Bennett",
"size": 1
},
{
"name": "Louis Armstrong",
"size": 1
},
{
"name": "Matthewdavid",
"size": 1
},
{
"name": "Brand New",
"size": 1
},
{
"name": "Miles Davis & Gil Evans",
"size": 1
},
{
"name": "Audioslave",
"size": 1
},
{
"name": "AUN J-CLASSIC ORCHESTRA",
"size": 1
},
{
"name": "Angela Lansbury & Jerry Orbach",
"size": 1
},
{
"name": "The Polyphonic Spree",
"size": 1
},
{
"name": "Electric Light Orchestra",
"size": 1
},
{
"name": "Hotel Lights",
"size": 1
},
{
"name": "Randy Newman",
"size": 1
},
{
"name": "Phish",
"size": 1
},
{
"name": "Wynton Marsalis & Eric Clapton",
"size": 1
},
{
"name": "No Doubt",
"size": 1
},
{
"name": "Frank Sinatra with Bobby Tucker Singers; Arranged & conducted by Axel Stordahl",
"size": 1
},
{
"name": "Tokyo Police Club",
"size": 1
},
{
"name": "The Mighty Mighty Bosstones",
"size": 1
},
{
"name": "The Pack a.d.",
"size": 1
},
{
"name": "Fugees",
"size": 1
},
{
"name": "I Am Robot and Proud",
"size": 1
},
{
"name": "Liturgy",
"size": 1
},
{
"name": "Bon Iver & St. Vincent",
"size": 1
},
{
"name": "植松伸夫",
"size": 1
},
{
"name": "Dan Benjamin & Merlin Mann",
"size": 1
},
{
"name": "Karen O with Trent Reznor and Atticus Ross",
"size": 1
},
{
"name": "Doujah Raze feat. AG & Sean Price",
"size": 1
},
{
"name": "Huey Lewis & The News",
"size": 1
},
{
"name": "Chicago Public Media",
"size": 1
},
{
"name": "Colbie Caillat",
"size": 1
},
{
"name": "Mariah Carey",
"size": 1
},
{
"name": "Wim Mertens",
"size": 1
},
{
"name": "Annette",
"size": 1
},
{
"name": "Sarah McLachlan",
"size": 1
},
{
"name": "The Beach Boys",
"size": 1
},
{
"name": "The Kingsmen",
"size": 1
},
{
"name": "The Astronauts",
"size": 1
},
{
"name": "The Pyramids",
"size": 1
},
{
"name": "The Exciters",
"size": 1
},
{
"name": "Michael Bublé",
"size": 1
},
{
"name": "The Seatbelts",
"size": 1
},
{
"name": "Judy Garland",
"size": 1
},
{
"name": "Perry Como",
"size": 1
},
{
"name": "Deftones",
"size": 1
},
{
"name": "The Evpatoria Report",
"size": 1
},
{
"name": "Femme Fatale",
"size": 1
},
{
"name": "Maps & Atlases",
"size": 1
},
{
"name": "Trans-Siberian Orchestra",
"size": 1
},
{
"name": "Temple of the Dog",
"size": 1
},
{
"name": "The Pogues",
"size": 1
},
{
"name": "The Roots feat. Maimouna Yousef",
"size": 1
},
{
"name": "Idiot Pilot",
"size": 1
},
{
"name": "Elvis Presley",
"size": 1
},
{
"name": "Mel Tormé",
"size": 1
},
{
"name": "Chris Rea",
"size": 1
},
{
"name": "Method Man feat. Lauren Hill & CL Smooth",
"size": 1
},
{
"name": "Stevie Wonder",
"size": 1
},
{
"name": "Queen",
"size": 1
},
{
"name": "Common",
"size": 1
},
{
"name": "Akir",
"size": 1
},
{
"name": "Efrim Manuel Menuck",
"size": 1
},
{
"name": "Soul Messengers",
"size": 1
},
{
"name": "Dead Prez feat. Common & Last Poets",
"size": 1
},
{
"name": "Gangstalicious Resurrection",
"size": 1
},
{
"name": "Moneen",
"size": 1
},
{
"name": "Ritualz",
"size": 1
},
{
"name": "Skyzoo",
"size": 1
},
{
"name": "下村陽子",
"size": 1
},
{
"name": "Bing Crosby",
"size": 1
},
{
"name": "Johnny Mathis",
"size": 1
},
{
"name": "And So I Watch You From Afar",
"size": 1
},
{
"name": "Jean-Yves Thibaudet",
"size": 1
},
{
"name": "Little Brother feat. Mos Def",
"size": 1
},
{
"name": "Perry Olason ft. 2Much",
"size": 1
},
{
"name": "Talib Kweli",
"size": 1
},
{
"name": "Black Lincolns",
"size": 1
},
{
"name": "Nuyorican Soul",
"size": 1
},
{
"name": "Zedd Feat. Matthew Koma",
"size": 1
},
{
"name": "Dick Dale and His Del-Tones",
"size": 1
},
{
"name": "Best Movie Soundtracks",
"size": 1
},
{
"name": "Strong Bad",
"size": 1
},
{
"name": "Jónsi & Alex",
"size": 1
},
{
"name": "Stevie Ray Vaughan",
"size": 1
},
{
"name": "We Came as Romans",
"size": 1
},
{
"name": "Jeff Buckley",
"size": 1
},
{
"name": "Interpol",
"size": 1
},
{
"name": "Joy Division",
"size": 1
},
{
"name": "AUKSO Orchestra / Krzysztof Penderecki",
"size": 1
},
{
"name": "Atlas Sound",
"size": 1
},
{
"name": "Jean Jacques Perrey, Luke Vibert",
"size": 1
},
{
"name": "The Moog Cookbook",
"size": 1
},
{
"name": "33",
"size": 1
},
{
"name": "Thrones",
"size": 1
},
{
"name": "Gangstalicious Resurrection Pt. 2",
"size": 1
},
{
"name": "Bear Vs. Shark",
"size": 1
},
{
"name": "RX Bandits",
"size": 1
},
{
"name": "Kevin Devine",
"size": 1
},
{
"name": "Noah Gundersen",
"size": 1
},
{
"name": "Snoop Dogg",
"size": 1
},
{
"name": "Kimya Dawson",
"size": 1
},
{
"name": "A Fine Frenzy",
"size": 1
},
{
"name": "Feist",
"size": 1
},
{
"name": "St. Vincent",
"size": 1
},
{
"name": "Rilo Kiley",
"size": 1
},
{
"name": "Cat Power",
"size": 1
},
{
"name": "The Dresden Dolls",
"size": 1
},
{
"name": "Kate Nash",
"size": 1
},
{
"name": "Florence + the Machine",
"size": 1
},
{
"name": "Laura Marling",
"size": 1
},
{
"name": "Excision",
"size": 1
},
{
"name": "Samuel E. Wright",
"size": 1
},
{
"name": "Wolf Parade",
"size": 1
},
{
"name": "The Walkmen",
"size": 1
},
{
"name": "The Chemical Brothers",
"size": 1
},
{
"name": "Surfer Blood",
"size": 1
},
{
"name": "We Were Promised Jetpacks",
"size": 1
},
{
"name": "Local Natives",
"size": 1
},
{
"name": "Clogs",
"size": 1
},
{
"name": "Fanfarlo",
"size": 1
},
{
"name": "Yeasayer",
"size": 1
},
{
"name": "Belle and Sebastian",
"size": 1
}
]
}
<!DOCTYPE html>
<meta charset="utf-8">
<style>
text {
font: 10px sans-serif;
}
</style>
<body>
<script src="http://d3js.org/d3.v3.min.js"></script>
<script>
var diameter = 960,
format = d3.format(",d"),
color = d3.scale.category20c();
var bubble = d3.layout.pack()
.sort(null)
.size([diameter, diameter])
.padding(1.5);
var svg = d3.select("body").append("svg")
.attr("width", diameter)
.attr("height", diameter)
.attr("class", "bubble");
d3.json("flare.json", function(error, root) {
var node = svg.selectAll(".node")
.data(bubble.nodes(classes(root))
.filter(function(d) { return !d.children; }))
.enter().append("g")
.attr("class", "node")
.attr("transform", function(d) { return "translate(" + d.x + "," + d.y + ")"; });
node.append("title")
.text(function(d) { return d.className + ": " + format(d.value); });
node.append("circle")
.attr("r", function(d) { return d.r; })
.style("fill", function(d) { return color(d.packageName); });
node.append("text")
.attr("dy", ".3em")
.style("text-anchor", "middle")
.text(function(d) { return d.className.substring(0, d.r / 3); });
});
// Returns a flattened hierarchy containing all leaf nodes under the root.
function classes(root) {
var classes = [];
function recurse(name, node) {
if (node.children) node.children.forEach(function(child) { recurse(node.name, child); });
else classes.push({packageName: name, className: node.name, value: node.size});
}
recurse(null, root);
return {children: classes};
}
d3.select(self.frameElement).style("height", diameter + "px");
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment