Skip to content

Instantly share code, notes, and snippets.

@Laurian
Forked from mbostock/.block
Last active December 18, 2015 13:29
Show Gist options
  • Save Laurian/5790465 to your computer and use it in GitHub Desktop.
Save Laurian/5790465 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<meta charset="utf-8">
<body>
<script src="http://d3js.org/d3.v3.min.js"></script>
<script>
var nodes = [{"label":"Christopher J Dennis"},{"label":"Bob Gonsalves"},{"label":"Bob Martinengo"},{"label":"Jeff Gomez"},{"label":"Frank Da Silva"},{"label":"Linda Nelson"},{"label":"Michael Bekemeyer"},{"label":"Christie Strong"},{"label":"Michele Simmons"},{"label":"Tom Marcinko"},{"label":"Jeff Norman"},{"label":"Jon Reiss"},{"label":"Elisabeth Holm"},{"label":"Travis Megill"},{"label":"John Paul Rice"},{"label":"Adisakdi Tantimedh"},{"label":"Tieg Zaharia"},{"label":"Nathan Loofbourrow"},{"label":"Erin Hoffman"},{"label":"Howard A. Rodman"},{"label":"Zetetics"},{"label":"Jeanne Veillette Bowerman"},{"label":"Brendon Fogle"},{"label":"Niki Anis Ab Karim"},{"label":"Tom Morton"},{"label":"Angela Shelton"},{"label":"Douglas Lain"},{"label":"Marcella Selbach"},{"label":"Flyway Film Festival"},{"label":"Mark Stolaroff"},{"label":"Joe Gold"},{"label":"Laurian Gridinoc"},{"label":"Bruce Murphy"},{"label":"Rachel West"},{"label":"Sean Akers"},{"label":"Storm Factory"},{"label":"Brian Jepson"},{"label":"Eric Donaldson"},{"label":"Kath ODonnell"},{"label":"Mike Winder"},{"label":"M Caulfield"},{"label":"Paul Tigue"},{"label":"Nate Carlson"},{"label":"Andrew McNicol"},{"label":"Jack Mahoney"},{"label":"chubbco"},{"label":"Da'Von Brown"},{"label":"Jean Gilpin"},{"label":"Michael Lubert"},{"label":"valerie fordham"},{"label":"Mark Teppo"},{"label":"Joke and Biagio"},{"label":"James Gale"},{"label":"Rene Roediger"},{"label":"Lance Menthe"},{"label":"DJ Holte"},{"label":"Blake Lindsley"},{"label":"Michelle"},{"label":"Mike White"},{"label":"The Postwoman Movie"},{"label":"Ed Grether"},{"label":"Arild Stromsvag"},{"label":"The GC 4"},{"label":"Becky Blasband"},{"label":"Dave Bullis"},{"label":"Ray Cornwall"},{"label":"beryl morago"},{"label":"Kate Sherrod"},{"label":"R.Michael Fierro"},{"label":"david budinger"},{"label":"Richard Paul Glass"},{"label":"Michela"},{"label":"John Kovalic"},{"label":"Nancy Linehan Charles"},{"label":"Marc A. Belanger"},{"label":"Cathy Reinking & Vicki Pearlson"},{"label":"Omar Kamel"},{"label":"Keith Kaplan"},{"label":"Michael Ellery"},{"label":"Lena Khan"},{"label":"Christine Koehler"},{"label":"David Taylor"},{"label":"Terri Nakamura"},{"label":"Helene Cardona"},{"label":"Marina"},{"label":"Tom Beyer"},{"label":"jimmy jams"},{"label":"Menachem Luchins"},{"label":"Michael"},{"label":"Tristan J Tarwater"},{"label":"Franceska Lynne"},{"label":"Valerie Dillman"},{"label":"Kara "},{"label":"Tom Provost"},{"label":"Dave LeFevre"},{"label":"Gail Silver"},{"label":"Legion"},{"label":"Daniel Ratoff"},{"label":"Jason Kirk"},{"label":"Greg Rien"},{"label":"John Hoff III"},{"label":"John Devenny"},{"label":"David L. Kuperman"},{"label":"Jeff March"},{"label":"Laura Matthews"},{"label":"Mark Keller"},{"label":"Larry Corsa"},{"label":"Alex Katz"},{"label":"Vivi Anna"},{"label":"Jonathan Schiefer"},{"label":"Jeff Richards"},{"label":"Thorsten Habelitz"},{"label":"Paul Singleton"},{"label":"Anthony Boonstra"},{"label":"Peter Hawkins"},{"label":"Kiichiro Yanashita"},{"label":"Karla Bryant"},{"label":"John Herrin"},{"label":"Jonathan Hilty"},{"label":"Debbi Converse"},{"label":"Kara \"KJ\" Miller"},{"label":"James Leahy"},{"label":"Hannah Zander"},{"label":"Carlos Franco"},{"label":"drensin"},{"label":"James Emanuel Shapiro"},{"label":"Thomas Covert"},{"label":"Drew"},{"label":"Rachel Galvin"},{"label":"Gary Bennett"},{"label":"Tim Tate"},{"label":"Tim & Annika"},{"label":"Linda Castellani"},{"label":"wimjannes"},{"label":"Lucius Sorrentino"},{"label":"Dimitri Lundquist"},{"label":"Mindy Henjum"},{"label":"Hayley Rosenblum"},{"label":"Robey Pointer"},{"label":"Fred Kiesche"},{"label":"Sean P Kearney"},{"label":"Aaron Fisher"},{"label":"William Plumhoff"},{"label":"Rob Hermanowski"},{"label":"Ralph Grierson"},{"label":"Tiffany Flynn"},{"label":"Kumar Sivasubramanian"},{"label":"Ben Newton"},{"label":"Peter Wong"},{"label":"Adrian Reynolds"},{"label":"David Gillham"},{"label":"Sam Curry"},{"label":"Joey Gruszecki"},{"label":"marina"},{"label":"Paul Petschek"},{"label":"Henri Wintz"},{"label":"Astrid 'Artistikem' Cruz"},{"label":"Josh"},{"label":"TempleHorses"},{"label":"Deanna Smith"},{"label":"Dominic Harman"},{"label":"Mihail Kochanov"},{"label":"Oliver Connolly"},{"label":"erickopeka"},{"label":"Allyn Gibson"},{"label":"Henrik Backlund"},{"label":"Charles Robinson"},{"label":"James Kersey"},{"label":"Rosser Schwarz"},{"label":"Doug Bolden"},{"label":"Joseph Casamento"},{"label":"Chris Chatfield"},{"label":"Warren Bennett"},{"label":"Doug Allaire"},{"label":"Jenna Avery"},{"label":"Peter Kavanagh"},{"label":"hmackiernan"},{"label":"Vasiliy"},{"label":"Jeremy Marino"},{"label":"Liz Rizzo"},{"label":"Damian Gordon"},{"label":"George Hager"},{"label":"Lee Cockrell"},{"label":"Richard Fenno"},{"label":"katy downing"},{"label":"Dave Hyde"},{"label":"Markus Fix"},{"label":"Michele Karpel"},{"label":"Unknown Traveller"},{"label":"Nigel Dobson-Keeffe"},{"label":"Perry Kinman"},{"label":"Jamie Livingston"},{"label":"Jamelle Morgan"},{"label":"Hans Olofsson"},{"label":"Peter Haydu"},{"label":"Markus Widmer"},{"label":"Etienne Barillier"},{"label":"Giovanni"},{"label":"Srynerson"},{"label":"Naevisus"},{"label":"Sylvia Stein"},{"label":"Talbot Yancy"},{"label":"Clark Perry"},{"label":"Ron Heller"},{"label":"Craig"},{"label":"rog"},{"label":"Nick Antonakos"},{"label":"Kent Gustavson"},{"label":"Douglas Bolles"},{"label":"terrence hughes"},{"label":"Rev. Jaz-Michael King"},{"label":"David Gill"},{"label":"Memoirture"},{"label":"Chase Rude"},{"label":"Tara Tomicevic"},{"label":"David Faler"},{"label":"Jon Michael Lennon"},{"label":"Jeffrey Kraynak"},{"label":"Gabriel Fernandez"},{"label":"Lisa Shaw"},{"label":"CONRAD FELBER"},{"label":"Sashaa"},{"label":"Aldo Adamo"},{"label":"Don Slaughter"},{"label":"Eric Ivins"},{"label":"Brant"},{"label":"alex ireton"},{"label":"Prof Nuton"},{"label":"Adam Fried"},{"label":"Filipe Leite Faria"},{"label":"Thora Brylowe"},{"label":"Anthony Kokocinski"},{"label":"sM. A. Kirkwood"},{"label":"Matt Cowens"},{"label":"Michael"},{"label":"Alix Elias"},{"label":"Bryan Glick"},{"label":"David Wardrop"},{"label":"Jacqueline Lichtenberg"},{"label":"Michael Maren"},{"label":"Kyle Shuebrook"},{"label":"Suhail Rafidi"},{"label":"MarkC"},{"label":"sergei"},{"label":"Nicole Ansari"},{"label":"JVelez1971"},{"label":"Jacob Segarra"},{"label":"Lorraine Henjum"},{"label":"Matt Eyre"},{"label":"Awesomeclaw"},{"label":"Lissa Reynolds"},{"label":"Stan Stewart"},{"label":"Staci Hollisterb"},{"label":"C. Robert Dimitri"},{"label":"Norman Jaffe"},{"label":"David Dean Bottrell"},{"label":"Kim"},{"label":"Julius Galacki"},{"label":"Dylan"},{"label":"Warren Tutwiler"},{"label":"leszek jaszczak"},{"label":"Tom Walker"},{"label":"Kelsey Edwards"},{"label":"Harlequin"},{"label":"armen evrensel"},{"label":"Mary Alice Kier"},{"label":"Adrien Solé"},{"label":"MARY ANNE MCGARRY"},{"label":"Kirsten Kollender"},{"label":"Kevin Connor"},{"label":"Alisdair Tullo"},{"label":"Ander Longenderfer"},{"label":"Erik Goggans"},{"label":"Matthew Coleman"},{"label":"Graeme Durrant"},{"label":"scarymonster"},{"label":"Grant Kahn"},{"label":"Jill Jaress"},{"label":"Paul Ryan"},{"label":"Shawn Simpson"},{"label":"Michael McCormick"},{"label":"Nina"},{"label":"Dana Urban"},{"label":"Rashmi Singh"},{"label":"John Britzke"},{"label":"Prometheus"},{"label":"Julien Dambron"},{"label":"Can Özmen"},{"label":"John Clover"},{"label":"Rus Ekkel"},{"label":"Matthew Courtenay"},{"label":"Allen Patton"},{"label":"Stephen Ballentine"},{"label":"Victor Grippi"},{"label":"M Butler"},{"label":"Laura Adkin"},{"label":"Becky Zappacosta"},{"label":"Keith Martin"},{"label":"John O'Donnell"},{"label":"Tom Zarillo"},{"label":"Daniel Steylemans"},{"label":"Kristopher G. Dowling"},{"label":"SmartMeme Studios"},{"label":"Wesley Warren"},{"label":"Varushka Franceschi"},{"label":"Darrell Wright"},{"label":"Douglas Randall"},{"label":"Michael Reaves"},{"label":"Palmer Eldritch"},{"label":"Michael Dunn"},{"label":"Michael Wittnebert"},{"label":"Lester Gibo"},{"label":"Thomas Shigeno"},{"label":"Adam Pachter"},{"label":"Rory Cantwell"},{"label":"Terence Drew"},{"label":"Stanton Carlisle"},{"label":"Stephen Johnston"},{"label":"Frank Hollander"},{"label":"Doris Mitchell"},{"label":"Chris Wood"},{"label":"Joseph P. Kane"},{"label":"stephen saleh"},{"label":"Byron Paul"},{"label":"Brian Lutton"},{"label":"Stepan"},{"label":"Tony Egler"},{"label":"David Newkirk"},{"label":"Susan Edge"},{"label":"Laura Entwisle"},{"label":"DuBose Medlock"},{"label":"Carlos Gutierrez"},{"label":"Jeremy Boden"},{"label":"Jeff"},{"label":"Sam Rose"},{"label":"Stephen E. Roberts"},{"label":"Jesse Henecke"},{"label":"Matt Cooper"},{"label":"william gormley"},{"label":"R. Douglas Burns"},{"label":"Charles S. Viar"},{"label":"Levi Coltrane"},{"label":"James Ward"},{"label":"Felix Dirla"},{"label":"Anthony Mills"},{"label":"Barbara Hartl"},{"label":"tobias schmuecking"},{"label":"Edwin Hammond"},{"label":"Channing Chase"},{"label":"Raul Alvarez Ayala"},{"label":"Donna Weiser"},{"label":"phillip hanly"},{"label":"Michael B. Karr"},{"label":"Alexandra Choi"},{"label":"Marion Solomon"},{"label":"Gilles Goullet"},{"label":"Benjamin Lawent"},{"label":"Gene Richards"},{"label":"Louis G Massouras"},{"label":"Ludovico Sassarini"},{"label":"Bruce Leichty"},{"label":"Aj Bellise"},{"label":"Grégory Drake"},{"label":"James Parsons"},{"label":"Craig McCullough"},{"label":"Minna Maria Hölttä"},{"label":"Kimberly Marel-Ronin"},{"label":"Pierre Bourdaud"},{"label":"Charles Matthew Steele"},{"label":"georgia hilton"},{"label":"Adam Ezagouri"},{"label":"Arthur Capps"},{"label":"Kees van Prooijen"},{"label":"Sebastian Jasinski"},{"label":"Agustin M. Reyes"},{"label":"Sharon Clark"},{"label":"Cassidy McMillan"},{"label":"amy"},{"label":"David L. Barr"},{"label":"Matthew Russell"},{"label":"Michael Sandberg"},{"label":"Tommy Grimes III"},{"label":"Alessandro Muraro"},{"label":"Andy Nash"},{"label":"Steven Hagin"},{"label":"eek"},{"label":"Mike Lyons"},{"label":"Marc Petit-Huguenin"},{"label":"Karl"},{"label":"John Loach"},{"label":"DE MARCO"},{"label":"Robert Stancavage"},{"label":"RICH BOKIDES"},{"label":"Marc Stone"},{"label":"Andy Butler"},{"label":"Mark Davies"},{"label":"Tony Bevan"},{"label":"Kay Saatchi"},{"label":"Jonathan Sless"},{"label":"Karen Stern"},{"label":"Christopher Becker"},{"label":"Lorenzo Boido"},{"label":"Robert P Russomano"},{"label":"Susan Lisak"},{"label":"Lauren McKee"},{"label":"Rosemary Ehle"},{"label":"Ben Newman"},{"label":"Bruce Bradley"},{"label":"Mario Lavin"},{"label":"Erik Christian Henderson"},{"label":"Tricia Jacobs"},{"label":"Natalia Martinelli"},{"label":"Laurie-Ellen Shumaker"},{"label":"Andrew Hurckman"},{"label":"Barbara Butler"},{"label":"William Melton"},{"label":"cisamolo"},{"label":"Robert Cook"},{"label":"Gregory Prahser"},{"label":"Allen Greenfield"},{"label":"Todd Brink"},{"label":"Susan Silvera"},{"label":"Emmanuel SECHER"},{"label":"Caleb Shane Milsaps"},{"label":"Georgina Honeybone"},{"label":"Mark Zarbo"},{"label":"Beth Sussman"},{"label":"Dennis Palumbo"},{"label":"daniel bienenfeld"},{"label":"Logan Murray"},{"label":"George T. Newberry"},{"label":"ellen schiff"},{"label":"T Jeffrey Reid"},{"label":"RICHARD SANSOM"},{"label":"Wendy Foxworth"},{"label":"Jeri Rosenblum"},{"label":"Eliot Ivanhoe"},{"label":"Keila Arcelay"},{"label":"Kyle Moffat"},{"label":"Jerome Le Lan"}];
var w = 1280,
h = 900,
// nodes = [],
node;
var vis = d3.select("body").append("svg")
.attr("width", w)
.attr("height", h);
var force = d3.layout.force()
.nodes(nodes)
.links([])
.size([w, h])
.gravity(.05)
.distance(80)
.charge(-60)
;
force.on("tick", function(e) {
vis.selectAll("text")
.attr("transform", function(d) { return "translate(" + d.x + "," + d.y + ")"; });
});
// setInterval(function(){
// Restart the layout.
force.start();
vis.selectAll("text")
.data(nodes)
.enter()
.append("text")
.attr("transform", function(d) { return "translate(" + d.x + "," + d.y + ")"; })
.attr("text-anchor", "middle")
// .attr("dx", "1em")
// .attr("dy", "1em")
.text(function(d) { return d.label; })
.style("stroke", "red")
.call(force.drag)
;
// }, 1000);
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment