Ask HN: How do you build diagrams for the web?
Do you use SVG? Canvas? Something else? If so, why? And what's your process?
When explaining a technical topic, I've sometimes found myself wanting to make a visual aid of some sort. But there seems to be a huge landscape of tools and I don't know what I should invest in learning.
Thanks in advance for any advice!
8 comments
[ 3.7 ms ] story [ 94.7 ms ] threadBecause SVG and canvas are technologies, not tools. You then said your intention is to explain technical topics?
For instance, one person's approach could be to use the Inkscape software to create SVGs. Another approach could be to use JS to call the Canvas API. Another is to use Tikz.
Because there are so many approaches, each requiring a heavy investment in learning, I was curious if any in the HN crowd have strong preferences.
However I fear it may not be low-level enough for what I'm hoping to do. Since I can't edit the OP, I'll reply to it with examples of what I'm hoping to achieve.
EDIT: https://news.ycombinator.com/item?id=38846756
[0]: https://en.wikipedia.org/wiki/Vector_space
[1]: https://en.wikipedia.org/wiki/Vector_space#/media/File:Deter...
a) interactive [2i] & [2iii] / non-interactive
b) generating data for visuals via: sketches by hand[0], gui/command line[1], via database/spreadsheet/ide[2]
-----
[0] i) : https://www.skillshare.com/en/blog/how-to-digitize-a-sketch-...
**[1] i) overleaf : https://www.overleaf.com/
**[2] i) jupyter / jupyterlab: https://jupyter.org/
Mathcha editor : https://www.mathcha.io/ can cut/paste tiz examples to use as starting template(s)
Asmptote : https://asymptote.sourceforge.io/
WolframAlpha : https://www.wolframalpha.com/input/?i=plot+2x%2B3y-5z%3D7
GeoGebra : https://www.geogebra.org/classic/3d
CPM 3D Plotter : https://technology.cpm.org/general/3dgraph/