When I am drawing a sparkline I cannot seem to use the colorMap option of sparkline. This option is somehow passed to jQuery, I am probably trying with a wrong syntax, but I cannot figure out, how to do it properly!
Other options listen on the website of jQuery Sparklines work:
library(sparkline)
sparkline::sparkline(round(runif(10,1,10)), type = "bar", spotRadius = 5)
But I cannot do the same with colorMap, this is one example how I have tried:
sparkline::sparkline(round(runif(10,1,10)), type = "bar", colorMap = {':5': '#ff0' })
When I am drawing a sparkline I cannot seem to use the colorMap option of sparkline. This option is somehow passed to jQuery, I am probably trying with a wrong syntax, but I cannot figure out, how to do it properly! Other options listen on the website of jQuery Sparklines work:
But I cannot do the same with colorMap, this is one example how I have tried:
I have also posted this question on stackoverflow.
My goal is to highlight a bar with a certain value.
What am I missing? Thanks for your help!