Re:I want to learn D3. I don’t want to learn Observable. Is ...
by dgb23 on Sunday June 13, 2021 @09:38AM
(#27492471)
But then again, you could just not use d3 in the first place and write a thin translation from your data structures to svg strings. Maybe use a template engine. You don’t need to cover the whole spec for your use case.
[ Parent
| on HN ]
Re:I want to learn D3. I don’t want to learn Observable. Is ...
by nitrogen on Sunday June 13, 2021 @12:55PM
(#27494132)
SVG seems really intimidating at first, but for simple (especially non-work) use cases where you only need to do one thing, it's actually really fast and easy to generate minimal SVG directly from data. The learning curve is no steeper than learning a does-everything plotting library, again for simple unchanging usecases.
Prerequisites: knowing how to scale numbers from one range (data range) to another (SVG coordinate range) using multiplication and addition.
Re:I want to learn D3. I don’t want to learn Observable. Is ...
by borrowcheckfml on Sunday June 13, 2021 @09:55AM
(#27492635)
Yes, I ended up not using d3 and using something else instead. But it's a shame because I thought d3 is a great project and a good fit for my use case. I just didn't want to waste my time and energy dealing with Observable.