sparklines icon indicating copy to clipboard operation
sparklines copied to clipboard

Add optional separators

Open deeplook opened this issue 9 years ago • 1 comments

For long sparklines it would be useful to have separators like : in the output such that e.g. sensor values over a period of several hours can be visually grouped into bins of e.g. four hours. The question might be if these should be described with options or rather with real separators between the values:

$ sparklines -n 2 --grouplen 4 --groupsep ":" 1 2 3 4 5 6 6 5 4 3 2 1
   ▂:▅██▅:▂
▁▄▇█:████:█▇▄▁

$ sparklines -n 2 1 2 3 4 : 5 6 6 5 : 4 3 2 1
   ▂:▅██▅:▂
▁▄▇█:████:█▇▄▁

deeplook avatar Nov 08 '16 18:11 deeplook

After implementing this feature there should be a new release on PyPI.

deeplook avatar Nov 11 '16 08:11 deeplook