An open API service indexing awesome lists of open source software.

https://github.com/11ty/api-sparkline

Service to return sparkline SVG images.
https://github.com/11ty/api-sparkline

eleventy eleventy-api

Last synced: 3 months ago
JSON representation

Service to return sparkline SVG images.

Awesome Lists containing this project

README

        

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`)