A JavaScript library for generating sparklines (tiny inline charts) from numeric arrays.
Sparkly is a JavaScript library that generates sparklines—tiny, inline charts—from arrays of numeric data. It solves the need for lightweight, text-based data visualization in terminals, logs, or other text environments where full charting libraries are overkill. The library provides customizable scaling and optional color styling to adapt sparklines to different data ranges and visual preferences.
Developers working on CLI tools, logging systems, or text-based applications who need to embed simple data trends without graphical dependencies.
Developers choose Sparkly for its minimal API, zero dependencies, and focus on terminal-friendly output, making it the go-to solution for adding sparklines to text-based interfaces quickly and efficiently.
Generate sparklines ▁▂▃▅▂▇
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Single function call with array input, as shown in the README examples, making it easy to integrate without complex setup.
Automatically skips non-finite numbers, creating visual gaps for missing values, demonstrated with examples like empty strings in arrays.
Allows setting minimum and maximum values in options to control sparkline output range, ensuring consistent scaling across datasets.
Generates sparklines using Unicode block characters suitable for text-based displays, ideal for CLI tools and logs without graphical dependencies.
Only supports a single 'fire' style gradient, with no built-in way to customize colors or themes further, restricting visual appeal.
Outputs are text characters, not graphical elements, making it unsuitable for web or GUI applications that require SVG or canvas charts.
Focuses solely on sparklines without support for other chart types or advanced features like data labels or interactivity, as noted in its minimalist philosophy.