htmlwidgets / sparkline

jQuery Sparkline HTML Widget for R
Other
244 stars 40 forks source link

Add x values to sparkline? #25

Closed andrasberczi closed 6 years ago

andrasberczi commented 6 years ago

Is there a way to add X values to sparkline? In the jquery.sparkline documentation I see that it should be possible, but I could not figure out, how can I do it using this package.

UPDATE: Finally I found the way, it is actually quite easy:

sparkline(
    values = c(1:3),
    xvalues = c(10,20,30)
)