api-sparkline icon indicating copy to clipboard operation
api-sparkline copied to clipboard

Service to return sparkline SVG images.

trafficstars

11ty Logo

Sparkline API

A runtime service to generate sparkline SVG images.

Demo

Sparkline representing frequency of posts on zachleat.com written from 2007 to 2021

Usage

Image URLs have the formats:

/[height]x[width]/[values]/
/[height]x[width]/[values]/[color]/
  • values is a comma separated list of numbers
  • color must be URI encoded (via encodeURIComponent)