News for hackers. Stuff that matters.
Re:XKCD-style charts with D3 by jamesaguilar on Thursday October 18, 2012 @08:11PM (#4671697)
If I'm honest, the most impressive thing about this is how much less concise this is than the mathematica version that came out earlier. I wonder if the difference is more a matter of the library quality or the syntax.
Re:XKCD-style charts with D3 by zaptheimpaler on Thursday October 18, 2012 @08:22PM (#4671722)
On the other hand, IMO this looks exactly like an XKCD style graph while all the others (including the mathematica) seemed a little off to me.
Re:XKCD-style charts with D3 by TeMPOraL on Friday October 19, 2012 @02:56AM (#4672564)
I'd say, a little bit too much jitter, especially in text. Some of the versions for Mathematica, et al. were a little bit closer, IMO.
Re:XKCD-style charts with D3 by pygy_ on Friday October 19, 2012 @04:01AM (#4672658)
The text is just a matter of font. The rendering of the graphs look exactly like the original, and that's the hard part.

Edit: as pointed out below, the algorithm was lifted from another version done in Python/Matplotlib by Jake Vanderplas: http://jakevdp.github.com/blog/2012/10/07/xkcd-style-plots-i...

Re:XKCD-style charts with D3 by pygy_ on Friday October 19, 2012 @06:28AM (#4672942)
The edit window is now closed, but I realised that the font he uses is Humor Sans, which is based on Randal Munroe's handwriting (the author of XKCD).

http://xkcdsucks.blogspot.com/2009/03/xkcdsucks-is-proud-to-...

Re:XKCD-style charts with D3 by richardwhiuk on Friday October 19, 2012 @04:25AM (#4672714)
I'd agree that the font is too much - it's bordering on illegible for me in Chrome 22 on Win 7.
Re:XKCD-style charts with D3 by pygy_ on Friday October 19, 2012 @08:53AM (#4673272)
It is badly hinted and thus badly anti-aliased.
Re:XKCD-style charts with D3 by wladimir on Friday October 19, 2012 @02:09AM (#4672469)
D3js is pretty verbose, but what you get is full control. Most charting libraries allow only a limited amount of configurability, which is neat if you just need to plot a basic chart quickly, but makes them awful if you want to make novel (or at least, more uncommon) kinds of visualisations or make non-standard changes to existing ones.
Re:XKCD-style charts with D3 by primitur on Friday October 19, 2012 @04:19PM (#4675233)
The best thing about this is that it doesn't require me to download and install 1.8 gigabytes of life-sucking Mathematica demo-version just to get a graph that I can draw on a napkin in 4 or 5 seconds ..
Re:XKCD-style charts with D3 by Evbn on Thursday October 18, 2012 @08:54PM (#4671791)
Mathematica has higher level drawing functions.

D3 tends to be more roll your own.