You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem is the number 7 in your character index calculation. A working formula for the index is int( 8 * (n-min)/(max-min) ) with n==max special-cased to give 7.
Data
0 1 19 20
should print ▁▁██ but prints ▁▁▇█The problem is the number 7 in your character index calculation. A working formula for the index is
int( 8 * (n-min)/(max-min) )
withn==max
special-cased to give 7.See also https://rosettacode.org/wiki/Talk:Sparkline_in_unicode#Most_of_these_are_buggy
The text was updated successfully, but these errors were encountered: