Skip to content

Files

Latest commit

 

History

History
21 lines (13 loc) · 632 Bytes

README.md

File metadata and controls

21 lines (13 loc) · 632 Bytes

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)