Exercise

Setting colors

Apart from color-coded status settings, there are more colors that can be set for objects like valueBox() and infoBox().

Available colors

In the following, you will set different colors in the body of a shinydashboard, although these objects can also be defined in the server() as we saw in an earlier example.

In this exercise, the shiny and shinydashboard libraries have already been loaded for you. Furthermore, the header and sidebar have been stored as header and sidebar, and server() is an empty function.

Instructions 1/2

undefined XP
    1
    2
  • Set the color of each infoBox(), other than that of "Volume", to black.
  • Set the color of the infoBox() containing "Volume" to navy and set its width to 4.