Datatype is an OpenType variable font that turns simple text expressions into inline charts. No JavaScript, no images, no rendering library — just type the syntax and Datatype's ligature substitution does the rest.
{b:30,70,50,90}
{b:30,70,50,90}
Bar chart
{l:10,50,30,80,20}
{l:10,50,30,80,20}
Sparkline
{p:65}
{p:65}
Pie chart
## Datatype is a variable font
Two axes give you control over chart density and weight. Drag the sliders to see charts respond in real time.
Datatype charts work anywhere text does — tables, dashboards, reports. Here's a stock watchlist with sparklines rendered entirely in Datatype.
Charts sit naturally within running prose, matching the surrounding typeface's metrics.
Merriweather (Serif)
Revenue grew steadily through Q3 {l:15,28,40,52,63,78,88,95,74,58} before a seasonal dip. Market share {p:34} held firm against competitors, and our product mix {b:60,45,80,30} shifted toward higher margins.
IBM Plex Sans (Sans-serif)
The patient's heart rate {l:68,82,55,90,42,78,60,85} remained within normal range. Blood oxygen {p:97} was excellent, and the weekly activity breakdown {b:25,40,55,75,90} showed consistent improvement.
Fira Code (Monospace)
cpu_load {l:15,45,90,30,75,20,85,95} spiking mem_used {p:78} req/s by endpoint {b:90,35,70,15,60}
## How to use Datatype
Add Datatype to your CSS, then just type chart expressions in your HTML.
> # [Datatype — variable font that turns text into charts](https://franktisellano.github.io/datatype/)