linefont: Font for rendering line chart data
github.com
github.com
Similar to the inaccessibility of icon fonts, but those tend to use private use character codes rather than actual readable text; reading the example page [1] with a screen reader is... not a great experience.
<span role="img" aria-label="[what assistive technologies should present]">[rendered content]</span>
e.g. recommended for marking up obscure emoji [1].Anyways, I see absolutely no reason why these projects (wavefont and linefont) build on top of plain ASCII (so the actual data sound as garbled nonsense) and not ligatures of actual figures, so what they "encode" as
abz
could easily be something represented like, for example :1 :2 :26
or any other human-readable sequence of characters what would match defined ligatures in the font, or be presented verbatim if the font failed to load/work.[0] https://developer.mozilla.org/en-US/docs/Web/Accessibility/A... [1] https://adrianroselli.com/2016/12/accessible-emoji-tweaked.h...
It is almost same as your suggested representation, just do `String.fromCharCode(values.map(v => v + 0x100))` or manually as `XX;XX;XX;` in HTML.
Responsive charts can be a pain and writing CSS for text is trivial compared to fumbling through yet another ridiculous API and needing a build step.
At that point you could just use an SVG charting library. Good charting libraries will have code snippets readily available for line charts that you can copy/paste. SVG can be styled with CSS just like text.
"Simpler code" seems like the main benefit but it comes with a big "weirdness" factor as the tradeoff. I'd bet there's a super lightweight SVG charting lib somewhere out there which is about as simple as this while being much more standard. i.e. supports line charts only, and has the simple type signature `(number[]) => SVGElement`.
Btw that one-liner function is helper, you don't have to install it it, just do `String.fromCharCode(0x100 + value)` to render character.
With modern font stacks, wouldn't it be possible to process comma-separated values directly? There are fonts [0, 1] that censor words without any need for pre-processing. I think this would be beneficial for accessibility.
[0]: https://vole.wtf/scunthorpe-sans [1]: http://projectseen.com
I'll add that "hate" is an overused word that tells us almost nothing, other than your displeasure. Show, don't tell. Instead of telling us that you hate it, show us some concrete facts and specific details. "Avoid describing the author's analysis and instead describe the scene or subject in such a way that readers can draw their own conclusions."