3 ms·
Can someone explain the advantage of doing this via text?
by arduinomancer 6y ago
Can someone explain the advantage of doing this via text?
- mattlondon 6y agoA couple of things that spring to mind: - super simple: no need to integrate a charting library or do server-side rendering - performance: if you have a table of hundreds of rows each with a sparkline chart (e.g CPU load/QPS/error rate/etc for many nodes etc in a cluster), just some text will be hugely more performant that 100x charting widgets or 100x server-side rendered images.
- philjohn 6y agoAlso gracefully degrades if the font isn't available for whatever reason, you'd see: {0, 10, 20, 30, 40, 50, 60, 70, 80, 90}
- einpoklum 6y agoNot really, because the font on HN comments can't be set to Sparks...
- amelius 6y agoNo advantage unless you enjoy solving problems in the least generic and least portable way.