Rendered using block elements. In most common fixed width fonts these are rendered wider than regular characters which means they are not suitable if you need precise alignment.
spark_bar(x)
x | A numeric vector between 0 and 1 |
---|
You might want to avoid sparklines on non-UTF-8 systems, because they
do not look good. You can use is_utf8_output()
to test for support
for them.
#> [1] "▁▂▄▅▇█" #> attr(,"class") #> [1] "cli_spark_bar" "cli_spark"#> [1] "█▂▅▁▇▄" #> attr(,"class") #> [1] "cli_spark_bar" "cli_spark"#> [1] "▁▂▃▄▅▆▇█" #> attr(,"class") #> [1] "cli_spark_bar" "cli_spark"#> [1] "▁ ▄ █" #> attr(,"class") #> [1] "cli_spark_bar" "cli_spark"