Value Box/Box Colour and Icon not showing in Dashboard

560 views
Skip to first unread message

Sayak Dutta

unread,
Sep 19, 2017, 6:56:19 AM9/19/17
to Shiny - Web Framework for R

Hi Guys,

I am using the valueboxoutput  and box in shiny to show some numbers in my dashboard.
Only the numbers and the title appears in the dashboard without any colour and icon.
Pls suggest a way to achieve the desired output.

Any help on this is appreciated.


Yoav Magor

unread,
Sep 20, 2017, 3:46:11 AM9/20/17
to Shiny - Web Framework for R
can you please share your code, or just a small reproducible example? it would be much easier to provide an answer that way

Sayak Dutta

unread,
Sep 20, 2017, 5:42:55 AM9/20/17
to Shiny - Web Framework for R
Hi i have attached the code i am using. Please go through and lemme know
server.R
ui.R

Yoav Magor

unread,
Sep 25, 2017, 5:23:36 AM9/25/17
to Shiny - Web Framework for R
it's better to post a small reproducible example - running the whole code you provided requires installing packages and diving into your code's logic - which usually makes it a lot harder for people to assist :)

i didn't end up running the app, but from examining your code i see two issues:
1. in your ui.R file, at the commented-out line 46, you have columns which are not wrapped in a fluidRow (the ones inside the box) - this can cause display/alignment issues.
2. in your server.R file, when rendering a valueBox you're not using the 'color' argument.
Reply all
Reply to author
Forward
0 new messages