After the flood | Projects | AtF Spark
▻http://aftertheflood.co/projects/atf-spark
“Can charts be shown in text without using code?”
Data can be hard to grasp – visualising it can make comprehension faster. Sparklines (tiny charts in text, like this: 123{10,20,30,40,50,60,70,80,90,100}789) are a useful tool but creating them for the web has always required code. Removing the need for code makes it more accessible. If you can use type, you can use Spark.
GitHub - aftertheflood/spark: A typeface for creating sparklines in text without code.
▻https://github.com/aftertheflood/spark
Spark uses the calt feature of OpenType to perform simple replacement operations on numbers. It takes strings like 123{30,60,90}456 and outputs a sparkline with three datapoints (30, 60, and 90) – the numbers outside of the brackets are not transformed.
When using the webfonts in a browser, you are supposed to explicitly enable the calt, however it seems that these days calt is enabled by default and you don’t need to do anything to make it work other than assign the font to your text.