Lurker News

Comments (41) 16 threads

timqian3 replies#
Hi, HN, thanks for the upvotes. I am the author of this lib.

What I want is a chart library with simple API like chart.js but in hand-drawn effect. I find there is no such lib, so I created this one. Thanks for trying it out.
Previous discussions about xkcd styled charts:
- xkcd styled charts in matplotlib: https://news.ycombinator.com/item?id=19293129
- simple line graph in d3: https://news.ycombinator.com/item?id=4671676
- disscussions on stackexchange: https://mathematica.stackexchange.com/questions/11350/xkcd-s...
- why are xkcd styled graph important: https://news.ycombinator.com/item?id=7511762

cogburnd022 replies#
The github page doesn't have the license?
azastrael#
The package.json file indicates that it’s under the MIT license. I wonder if that’s enough though.
timqian1 reply#
it is MIT, I have added it to the repo
imdsm#
Ah, you've linked to the HN thread for https://www.chrisstucchio.com/blog/2014/why_xkcd_style_graph... — I just went looking for this. I always think of this post when the subject of charts is brought up.

It also help develop my way of thinking with regard to the precision of units in estimations, e.g. going 24 hours over a 72 hour deadline is interpreted as bad, but going 1 day over a 3 day deadline isn't interpreted as nearly as bad. It's about precision and how it informs ones beliefs.

ac4tw#
Thanks @timqian--really like the look of this and the examples cracked me up--esp.: "Monthly income of an indie developer".

I'd 2nd the comments below on Safari & size--ultimately I'm excited about using this in some mobile projects we're planning.

yoz-y1 reply#
Looks cool! On safari in Codepen it does not render any lines though, only text is visible.
timqian1 reply#
Thanks, I did not test it on safari, will look into this issue later
keyadams#
Same in chrome on iPhone. I love this library btw, good job! :)
SimeVidas3 replies#
Almost 1 MB of JavaScript transferred to render a single chart? I am afraid that is not acceptable. I mean no disrespect whatsoever to the author of the library, but sending that amount of JS for a single component is just outside of any reasonable performance budget.

That being said, a server-side or build-step tool that generates lean SVG code? Yes, please.

wilsonrocks1 reply#
Acceptable to whom?
SimeVidas#
The general public.
timqian#
Author here, thanks for mentioning about this issue here. The lib size is over 400kb because I imported the whole d3 lib into it, but actually only using small fraction of it. I will optimize the size later. server side rendering/svg generator is also a good idea, thanks for the suggestion
SimeVidas#
Great job!

Load more comments