homeaboutarchives + tagsshopmembership!
aboutarchivesshopmembership!
aboutarchivesmembers!

kottke.org posts about Tim Qian

Javascript Library for Creating XKCD-Style Charts

posted by Jason Kottke   Nov 15, 2019

Tim Qian has created a Javascript library called chart.xkcd for making charts that look hand-drawn in the style of XKCD.

Xkcd Chart

It’s easy to get started with chart.xkcd. All that’s required is the script included in your page along with a single <svg> node to render the chart.

You can use it to make line charts, XY charts, bar charts, radar charts, and pie/doughnut charts. I am definitely going to be using this in the future.

Speaking of XKCD, Randall Munroe has a new NY Times column called Good Question where he answers odd science questions (a la What If?). The first installment: If I Touched the Moon, What Would It Feel Like?

Moon dust may not burn you, but it’s no picnic. Like Earth sand, moon dust is effectively made of tiny glass shards, but the sharp edges have not been worn down by erosion. As a result, it can be pretty unhealthy.

(via sidebar)