Skip to content

Latest commit

 

History

History
25 lines (15 loc) · 611 Bytes

README.md

File metadata and controls

25 lines (15 loc) · 611 Bytes

spark

sparklines in your Crystal

See? Here's a graph of your productivity gains after using spark: ▁▂▃▅▇

install

This is a Crystal port of the python spark.

usage

Just pass to the Spark.string function an array of numbers.

Spark.string([0,30,55,80,33,150])
▁▂▃▅▂▇

the function accept a second parameter for normalize data and fit min:

Spark.string([0, 30, 55, 80, 33, 150], true)
 ▁▂▄▁█

▇▁ ⟦⟧ ▇▁