Scale by coefficient before rounding. Fixes probability dist. If sparkline is plotting a probability distribution, all values will be in the range [0..1.0] and possibly all < 0.5. Rounding before scaling can result in all values being rounded to 0 in this case.  Scaling first corrects this problem.
Scale by coefficient before rounding. Fixes probability dist.
If sparkline is plotting a probability distribution, all
values will be in the range [0..1.0] and possibly all < 0.5.
Rounding before scaling can result in all values being rounded
to 0 in this case.  Scaling first corrects this problem.

RedKrieg/pysparklines