Live data from Hacker News

Interactive Charts with D3

wattenberger.netlify.com

31–33 of 33 posts

Re: Interactive Charts with D3

#32
post #24

Is it just me or is D3 absurdly complicated for making a simple chart? I look through that tutorial and I ask myself why I'd go to the trouble of coding a chart from scratch when I've presumably already spent time analyzing and cleaning a dataset and am looking to make it presentable to an audience. If I had to go with a custom design, I'd use HighCharts (free for non-commercial use) or ChartsJS (free), which already…

When the charting library gives you exactly what you want (or close enough), sure. Probably for 95% of what most people need to do that's enough.

But as soon as you need to deviate or add extra functionality from what your chart library gives you, it's often about as much work to just do the chart from scratch in D3 than to dig into the internals of ChartJS or whatever to add in what you want.

Also, while it does have a steep learning curve, once you get the hang of it it's not that hard.

Re: Interactive Charts with D3

#33
post #8

Earlier quoted context omitted.

Agreed, except the font is subjectively unpleasant to read. Easy fix is to change to font-family: serif; on the App component

Interesting! I'm actually a big fan of the font. Fonts are a weirdly personal choice - I'll think on adding a font toggle, since the whole point of the article is to be read.

Thank you for your work! It is definitely personal and as I mentioned, completely subjective. That is a great idea.

Well done for shipping!

Post reply on HN