Tufte Sparklines - Micro Visualizations with AtF Spark
Update: Some content blockers prevent web fonts from loading. If you’re seeing things on the page that look like this instead of a bar or dot chart - 123{10,20,30,40,50,60,70,80,90,100}789 - then the fonts are not loading.
After the Flood (AtF) Spark is a collection of web fonts you can use to implement sparklines, an Edward Tufte visualization concept:
Data can be hard to grasp – visualising it can make comprehension faster. Sparklines (tiny charts in text, like this:
) 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.
This is very cool.
Examples of the types of charts supported (just to illustrate what AtF Spark can do – these are not necessarily the most appropriate ways to represent the information selected):
Apple's stock price has fluctuated over the past five years.
But it has grown strongly over the last ten.
Going back just a few more years it's even more dramatic.
Atmospheric CO2 (ppm) over the past ten years 383{94,95,95,96,96,97,98,98,99,100}404 has recently topped 400.
Since 1959 316{78,78,79,79,79,80,80,81,81,81,82,83,85,87,89,91,93,94,95,95,96,96,97,98,98,99,100}404 it has risen over 27%.
Over the last 10,000 years 265{2,2,1,2,3,4,4,4,4,9}404 it has increased by more than half.
To use AtF Spark on your website:
- Download the fonts from here.
- Copy them to a folder that your web server can access.
- Set up your CSS as follows, with the correct path to the font file in the
@font-face src
attribute:
- Embed a chart on your website like this:
Not sure I could have gotten this working without help from Paul Bradshaw. See his sample code for more details.
Categories Technology