However now I've started playing around with it, I realise its killer core feature: it manages the relationships between the scale of your data and the coordinates on your screen, which saves a ton of awkward calculations. Add in helpers built on top for things like axes, line smoothing etc. and you've got a hell of a powerful API for creating charts, custom visualisations and anything else you can think of. I'm becoming a fan.
Any good resources you could share that has helped you? Thank you.
d3-graph-gallery.com
Really nice gallery. I think this will serve as a great reference material for me when learning.
I found this YouTube video of someone walking through creating a bar chart helpful - the author explains as he goes:
Beyond that, copying and pasting working examples and trying to adjust them for your purposes works really well. I still don't fully understand the API but it doesn't seem to matter that much to start with - I'm still in the "monkey see, monkey do, monkey iterate" phase.
And unlike Jupyter, ObservableHQ notebook does a lot of heavy lifting when it comes to creating charts for the web which outside that makes it really difficult to adapt to.
I guess I will have to follow the monkey rule until I really understand it well and need to learn desperately.
D3.js is split in 2 types of functions:
- "math" - rendering
Math functions cannot be avoided for sure