News for hackers. Stuff that matters.
Re:Using SVG to create simple sparkline charts by nnf on Monday July 10, 2023 @08:16AM (#36665250)
Simple, data-driven graphics like this is one area where SVG really shines, I think. No need to load a JavaScript charting library if you just want some simple line charts like this. I create SVG images fairly often, and maybe half the time I find myself hand-coding them, or at least hand-tweaking them, since I enjoy the magic of seeing code turn into something visual.
Re:Using SVG to create simple sparkline charts by kongprofit on Monday July 10, 2023 @09:16AM (#36665928)
do you have a blog
Re:Using SVG to create simple sparkline charts by unmole on Monday July 10, 2023 @09:19AM (#36665963)
SVGs are amazing for interactive visualisation too. Like Flamegraphs: https://www.brendangregg.com/flamegraphs.html
Re:Using SVG to create simple sparkline charts by antonhag on Monday July 10, 2023 @11:51AM (#36668156)
An alternative if you want a bit more help with charting, without client side JS, is to use d3-shape (https://github.com/d3/d3-shape) to server-side render SVGs.