This content originally appeared on Bram.us and was authored by Bramus!
Zach Leat recently created a cloud function that dynamically generates sparklines. Under the hood sits the the sparkline-svg
package to generate the SVG. The datapoints themselves can be passed in via the URL.
Image URLs have the formats:
/[height]x[width]/[values]/
/[height]x[width]/[values]/[color]/
The code is meant to be deployed as a Netlify Serverless Function.
Every Fire needs a Sparkline →
Sparkline API (GitHub) →
This content originally appeared on Bram.us and was authored by Bramus!
Bramus! | Sciencx (2021-09-16T19:17:51+00:00) Cloud Function to generate SVG Sparklines. Retrieved from https://www.scien.cx/2021/09/16/cloud-function-to-generate-svg-sparklines/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.