News for hackers. Stuff that matters.
Re:A Big List of D3 Examples by sakai on Monday October 07, 2013 @04:05PM (#6510832)
Ugh, I clicked a few of the earthquake examples (did a similar viz in the past) and saw that none of them was working.

Then looking at the curl responses one gets, "Due to the Federal government shutdown, usgs.gov and most associated web sites are unavailable. Only web sites necessary to protect lives and property will be maintained."

One can only wish they saw these and similar APIs as important infrastructure that needs to remain functional.

Otherwise -- this is very helpful! Thanks so much for assembling the collection.

Re:A Big List of D3 Examples by jedbrown on Monday October 07, 2013 @09:43PM (#6512493)
When I need to make graphics for research talks, I usually turn to TikZ [1] since I currently make talks using latex-beamer. But I'm always impressed when I look at D3.js and I think it would be great to have a more reliable way to add animations, as well as putting interactive content on my website.

Given that LaTeX math is important to me, should I make a serious effort to learn D3.js (and one of the HTML slide deck packages) or stick with LaTeX? Note that figures usually can't be directly reused between talks and papers anyway, but a modest amount of tweaking is usually enough. Using HTML/D3.js instead of latex-beamer for talks would probably make reuse in talks more difficult.

[1] http://texample.net/tikz/

Re:A Big List of D3 Examples by chairmankaga on Monday October 07, 2013 @10:18PM (#6512620)
I was able to pick up D3 fairly quickly and I love it. Dashing d3 [1] was a great starting off point, but nothing beats looking through a ton of live examples.

[1] https://www.dashingd3js.com/

Re:A Big List of D3 Examples by danso on Monday October 07, 2013 @03:43PM (#6510683)
It's interesting that some of the NYT visualizations are static graphics that normally, back in the print-only days, been done in Illustrator. Here's a map of Chicago killings done by Mike Bostock et al:

http://www.nytimes.com/interactive/2013/01/02/us/chicago-kil...

I wonder if making static charts via D3js has some time-savings/production advantages when the dataset is large enough? Before you say "maybe they just wanted vector graphics that worked for high-res"...that's obviously a benefit, but not enough on its own to give the web devs a graphic that could've been done via the traditional means (many of the Times stories include static graphics as PNGs in the sidebar)

Re:A Big List of D3 Examples by mhw on Monday October 07, 2013 @04:01PM (#6510796)
I think you're right that there's a quantity of data where using D3.js will start to be more productive than doing it manually in something like Illustrator. It's an instance of a trade off that we're all familiar with: at what point is it worth building a tool instead of doing the task manually? It's also worth bearing in mind that the point where it makes sense to use a tool is reached more quickly with proficiency in the tool - if you have Mike Bostock working for you I imagine most visualisations will be easier to produce with D3.js!

I think the other significant aspect is the speed of iteration. In my experience, producing good visualisations takes lots of iteration and those can take a lot of time if you have to alter each data item by hand. I've often reverted to paper and sketched out a revision that's way a few times before going back to the drawing program. I think it's likely that it's much quicker to iterate using D3.js (in the right hands).

Re:A Big List of D3 Examples by ejfox on Monday October 07, 2013 @04:02PM (#6510805)
It's important to factor in the importance of reusability. When someone makes a D3 visualization, it is infinitely reusable and hackable. So next time you want to make a map of killings in Chicago, you have it ready to go, and you just plug in the data, rather than having someone re-make it by hand. When you're a news organization, where speed is obviously of the essence, this investment has to be a no-brainer.

As Bostock's incredible skill is deployed on a variety of visualization problems, the New York Times builds a library of visualizations and templates that they can use for the foreseeable future, as long as the data is in the same format. That is incredibly valuable.

Re:A Big List of D3 Examples by toomuchtodo on Monday October 07, 2013 @06:05PM (#6511622)
I work for a web news network startup, and I'm hacking together D3 visualizations specifically because they're reusable. We're based in Chicago, and plan on doing crime segments, and my visualization will take public CPD crime stats, display them (hopefully beautifully), and then encode them with ffmpeg for web video.
Re:A Big List of D3 Examples by coryfklein on Monday October 07, 2013 @03:45PM (#6510696)
For a second I thought these were killings done by Mike Bostock...
Re:A Big List of D3 Examples by SubMachinePun on Monday October 07, 2013 @03:57PM (#6510774)
I guess that explains the recent decline of HighCharts and Fusion Tables users...
Re:A Big List of D3 Examples by dnprock on Monday October 07, 2013 @05:29PM (#6511409)
Back in the days, people used to draw graphic by hand. Then, tools like Illustrator help automate the creation of graphic. Vector graphic libraries are going to disrupt the landscape.

It is starting out as artisan tool for programmers to build data visualization. Overtime, we'll have reusable templates/components that speed up the creation process and reduce cost. Christophe's list is awesome. I reference it quite a bit :)

At some point, creating vector graphic will be just as fast as creating static graphic. Plus, much more flexibility.

My team is tinkering with such idea with http://vida.io. Here's a little demo video:

http://www.youtube.com/watch?v=1_LDH1T1D1Y

Re:A Big List of D3 Examples by javajosh on Monday October 07, 2013 @05:07PM (#6511280)
1900 D3 examples.

1723 of them by Mike Bostock! [1]

[1] number is made up but almost certainly close.

Re:A Big List of D3 Examples by ejfox on Monday October 07, 2013 @05:21PM (#6511367)
You can actually see that Bostock is "only" responsible for 698: http://christopheviau.com/d3list/gallery.html#author=all
Re:A Big List of D3 Examples by arthurgibson on Monday October 07, 2013 @07:02PM (#6511912)
Pretty good one from @whichlight Reddit Network Vis with D3: https://github.com/whichlight/reddit-network-vis
Re:A Big List of D3 Examples by granttimmerman on Monday October 07, 2013 @08:11PM (#6512167)
[1] 682 are by mbostock (to be accurate)
Re:A Big List of D3 Examples by elwell on Monday October 07, 2013 @06:38PM (#6511792)
Re:A Big List of D3 Examples by cocoflunchy on Monday October 07, 2013 @06:46PM (#6511834)
Re:A Big List of D3 Examples by RaSoJo on Tuesday October 08, 2013 @01:12AM (#6513179)
Interesting..but made me feel pukish!
Re:A Big List of D3 Examples by viggity on Monday October 07, 2013 @03:45PM (#6510702)
very cool, christophe, thanks for taking the time to compile this list.

The one thing that always astounds me about people who generate dataviz with d3 is that they almost never do anything interactive with it (filter, zoom, etc) and if they do, they won't use any of d3's insanely cool/easy transitions to make the visualization smoothly morph from one state to the next.

Really, if you're going to start messing around with d3, read about Mike Bostock's thoughts on change blindness and object constancy.

http://bost.ocks.org/mike/constancy/

amazing example 1: http://bl.ocks.org/mbostock/1256572

cool example 2: http://bl.ocks.org/mbostock/3808234

Re:A Big List of D3 Examples by bunkat on Monday October 07, 2013 @03:52PM (#6510743)
My swimlane chart made the list (http://bl.ocks.org/bunkat/1962173) and it includes panning and zooming functionality as another example. Be warned, it's pretty ugly looking!
Re:A Big List of D3 Examples by joeblau on Monday October 07, 2013 @11:30PM (#6512875)
Does anyone know if there is a good D3 example of something like noflo [1]? Most of the graphs D3 has are great for data visualization but not as helpful if you're trying to build a system for interaction between nodes that you don't want bouncing all over the place.

[1] - http://noflojs.org/dataflow-noflo/demo/

Re:A Big List of D3 Examples by aheilbut on Tuesday October 08, 2013 @01:53AM (#6513291)
jsPlumb may be more suitable for what you want.
Re:A Big List of D3 Examples by jeybalachandran on Monday October 07, 2013 @05:03PM (#6511242)
Re:A Big List of D3 Examples by shmageggy on Monday October 07, 2013 @04:45PM (#6511133)
1171: null was my favorite.

http://bl.ocks.org/mbostock/582781

Re:A Big List of D3 Examples by martininmelb on Monday October 07, 2013 @08:43PM (#6512269)
I ran it through an html checker (http://validator.w3.org/check) and got 3 Errors and 4 Warnings.
Re:A Big List of D3 Examples by brucehubbard on Tuesday October 08, 2013 @10:44AM (#6515292)
Had some traffic to my site from random places in the world (Brazil, Sweden, India) and had no clue where it was coming from until I saw this thread in my twitter feed. Mine is the Facebook Mutual Friends one.

You could also check out my slides from one of my d3 talks (with interactive examples):

notacog.com/d3/slideshow

Re:A Big List of D3 Examples by dzink on Monday October 07, 2013 @06:31PM (#6511754)
They forgot mine! http://www.doerhub.com/of/dzink

D3 based profile visualization of interests and stages of needs in each field.

More about what it means here: http://www.doerhub.com

Re:A Big List of D3 Examples by doomtoast on Tuesday October 08, 2013 @09:30AM (#6514692)
That does look quite cool. Would you mind saying more about it, and how the scraper works?
Re:A Big List of D3 Examples by tieTYT on Monday October 07, 2013 @03:54PM (#6510758)
I wish this had thumbnails of the link I will be redirected to. Still a good list though.
Re:A Big List of D3 Examples by biovisualize on Monday October 07, 2013 @04:03PM (#6510816)
Re:A Big List of D3 Examples by larrydag on Monday October 07, 2013 @04:30PM (#6511031)
Re:A Big List of D3 Examples by kbar13 on Monday October 07, 2013 @04:02PM (#6510813)
The title is a bit more literal than I hoped.

Opened link, saw huge list of text links, closed.

You know, it would be cool if the list of d3 examples was itself a cool interface powered by d3.

Re:A Big List of D3 Examples by mcintyre1994 on Monday October 07, 2013 @04:28PM (#6511016)
Not sure if it's been added since your comment, but there's a link to explore an interactive version on the page. It goes here: http://christopheviau.com/d3list/gallery.html
Re:A Big List of D3 Examples by boothead on Monday October 07, 2013 @04:36PM (#6511070)
Any thoughts on vega? http://trifacta.github.io/vega/
Re:A Big List of D3 Examples by _nate_ on Monday October 07, 2013 @04:44PM (#6511128)
It's hard to beat D3... once you learn it, that it is. And it takes time to learn.
Re:A Big List of D3 Examples by boothead on Tuesday October 08, 2013 @03:01AM (#6513432)
Vega is a grammar for describing d3 from what I can see.
Re:A Big List of D3 Examples by adamb_ on Monday October 07, 2013 @03:51PM (#6510733)
First link I tried was dead... #48
Re:A Big List of D3 Examples by oscilloscope on Monday October 07, 2013 @03:52PM (#6510747)
Re:A Big List of D3 Examples by biovisualize on Monday October 07, 2013 @03:59PM (#6510785)
Fixed. Thanks!
Re:A Big List of D3 Examples by adamb_ on Monday October 07, 2013 @04:05PM (#6510836)
Thanks for the promptness. This list is awesome.
Re:A Big List of D3 Examples by photorized on Monday October 07, 2013 @04:54PM (#6511194)
D3 is awesome. We use it a lot.
Re:A Big List of D3 Examples by wildmXranat on Monday October 07, 2013 @06:13PM (#6511660)
nice compilation
Re:A Big List of D3 Examples by thrownaway2424 on Monday October 07, 2013 @04:44PM (#6511124)
Timely! I've been searching for "Zoomable Sunburst" but was unable to find it. If it's "a treemap, except it uses a radial layout" why don't they call it a radial treemap, instead of a sunburst?

Anyway, recall problems aside, this gallery is fantastic.