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.
- Host: GitHub
- URL: https://github.com/11ty/api-sparkline
- Owner: 11ty
- Created: 2021-09-11T03:53:40.000Z (over 3 years ago)
- Default Branch: v1-vercel
- Last Pushed: 2024-08-07T15:27:53.000Z (9 months ago)
- Last Synced: 2024-10-29T15:44:51.278Z (6 months ago)
- Topics: eleventy, eleventy-api
- Language: JavaScript
- Homepage: https://v1.sparkline.11ty.dev
- Size: 14.6 KB
- Stars: 22
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Sparkline API
A runtime service to generate sparkline SVG images.
## Demo
## 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`)