Generate sparklines
▁▂▃▅▂▇
JavaScript port of spark.sh.
import sparkly from 'sparkly'; sparkly([0, 3, 5, 8, 4, 3, 4, 10]); //=> '▁▃▄▇▄▃▄█' // Specifying anything other than finite numbers will cause holes sparkly([0, 3, 5, '', 4, 3, 4, 10]); //=> '▁▃▄ ▄▃▄█' // Specifying an object with minimum and maximum options will change the sparkline range sparkly([1, 2, 3, 4, 5], {minimum: 0, maximum: 10}); //=> '▁▂▃▄▄' // Specifying a style option will change the sparkline color sparkly([1, 2, 3, 4, 5, 6, 7, 8], {style: 'fire'}); // ↓sparkly(numbers, options?)
Type: number[]
The numbers to create the sparkline from.
Type: object
Type: number
Minimum range.
Type: number
Maximum range.
Type: string
Values: 'fire'
Style for the sparklines.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4