1. Learn
  2. /
  3. Courses
  4. /
  5. Building Dashboards with shinydashboard

Exercise

Wireframing with UI/UX principles

Let's now carry out wireframing for your dashboard, while applying some of the principles. Note that no visualizations will be rendered in this exercise.

Imagine creating a dashboard for Sally whose portfolio is made up of two stocks, Apple (AAPL) and Disney (DIS). What would you include in her dashboard?

Some variables to be considered are the daily market opening and closing prices of each stock, denoted by close and open, as well as the maximum and minimum prices, denoted by high and low. Another variable of interest is the trading volume for the day (i.e., number of shares traded for the day), which is denoted by volume.

The shinydashboard and shiny libraries have been included for you in this exercise, and an empty function called server() has been stored.

Instructions 1/2

undefined XP
    1
    2
  • Truncate the number in the badgeLabel argument to 2 decimal places by editing the text in badgeLabel.
  • Change the badge color from red to green.