TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Automating XKCD-Style Narrative Charts

91 pointsby r0mualdabout 9 years ago

9 comments

imkevinxuabout 9 years ago
Shameless plug for my XKCD Graph generator <a href="http:&#x2F;&#x2F;xkcdgraphs.com&#x2F;" rel="nofollow">http:&#x2F;&#x2F;xkcdgraphs.com&#x2F;</a>
评论 #11379142 未加载
jamessbabout 9 years ago
&gt;Like all good developers, rather than attempt to build it myself, I had a good look around to see if anyone else had attempted the same thing, and it turns out, someone had. Unfortunately, the example I found isn’t open source, so we had to build it ourselves.<p>I came across an open source (MIT licensed) project to draw these kind of charts a few years ago: <a href="https:&#x2F;&#x2F;github.com&#x2F;bhagany&#x2F;nchart" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;bhagany&#x2F;nchart</a><p>(The algorithms used by nchart and d3-layout-narrative are not the same)
评论 #11379155 未加载
hitekkerabout 9 years ago
Direct link to library:<p><a href="https:&#x2F;&#x2F;github.com&#x2F;abcnews&#x2F;d3-layout-narrative" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;abcnews&#x2F;d3-layout-narrative</a>.<p>Neat stuff: I will see if it has utility for planning out my own writing.
yegleabout 9 years ago
A narrative of <a href="https:&#x2F;&#x2F;en.m.wikipedia.org&#x2F;wiki&#x2F;All_You_Zombies" rel="nofollow">https:&#x2F;&#x2F;en.m.wikipedia.org&#x2F;wiki&#x2F;All_You_Zombies</a> would be interesting.
fizixerabout 9 years ago
Also, JakeVDP did xkcd-style plots [0] in 2012 (and I think now they&#x27;re bundled as part of the IPython&#x2F;Jupyter&#x2F;Matplotlib&#x2F;Anaconda package).<p>[0] <a href="https:&#x2F;&#x2F;jakevdp.github.io&#x2F;blog&#x2F;2012&#x2F;10&#x2F;07&#x2F;xkcd-style-plots-in-matplotlib&#x2F;" rel="nofollow">https:&#x2F;&#x2F;jakevdp.github.io&#x2F;blog&#x2F;2012&#x2F;10&#x2F;07&#x2F;xkcd-style-plots-i...</a>
zellynabout 9 years ago
This seems like a perfect use case for human-aided layout: if you could drag things to rearrange, but the computer kept it correct, it seems like you could tweak them pretty quickly into a much better state.
chris_wotabout 9 years ago
Damn, that example narrative chart is the who&#x27;s who of either corrupt, or stupid, Australian politicians.
pronoiacabout 9 years ago
Here&#x27;s a take on the problem from 2010: <a href="http:&#x2F;&#x2F;ogievetsky.com&#x2F;PlotWeaver&#x2F;" rel="nofollow">http:&#x2F;&#x2F;ogievetsky.com&#x2F;PlotWeaver&#x2F;</a> (Warning: Flash)
swinghuabout 9 years ago
Excellent,good work