Data, Code and Visualization - valueBoxes and Sparklines #2
Replies: 3 comments 2 replies
-
this is great! Do you have a package that provides these functions? |
Beta Was this translation helpful? Give feedback.
-
Hey, thank you for this. I am interested in capturing mouse events (specially clicks) if one clicks on the value box, is there a way to do this? I tried changing the class in the last div to
to
and then using an
But this doesn't quite work; I am not able to print any clicks to console. Looking at the underlying html in browser's inspect, the id "testvb" is not visible at all, so I think I am not changing the class/id correctly. Any help is appreciated, cheers |
Beta Was this translation helpful? Give feedback.
-
Nice idea, @sactyr! Glad the implementation is easy. |
Beta Was this translation helpful? Give feedback.
-
Data, Code and Visualization - valueBoxes and Sparklines
The value boxes are a good way to get to the point quickly in a dashboard showing the relevant value with a big font and eye-catching color. But sometimes it would be better show that relevant number with a related text, sparkline or information to give context of that value, or just to compare it with the previoues ones. In this post we’ll show how to add sparklines to valueBox in shinydashboard and other related packages.
http://jkunst.com/blog/posts/2020-06-26-valuebox-and-sparklines/
Beta Was this translation helpful? Give feedback.
All reactions