CommencerCommencer gratuitement

Good UI/UX practices and a warm-up

Sally wants to know if her portfolio is doing well, and so, you decide to build a dashboard for her.

Suppose there are only two stocks in her portfolio - Apple (AAPL) and Disney (DIS). The variables considered are open, high, low, close and volume (OHLCV).

The data have been stored as apple and disney. The helper functions are as follows:

  • get_name(): Get the name of each company
  • most_recent(): Get the most recent OHLCV values
  • most_recent_pct(): Get the most recent percentage changes in OHLCV
  • plot_line(): Plot the trend of OHLCV values with respect to date
  • box_color(): Get the color to be displayed, based on whether if the given value is positive (green), negative (red), or zero (blue)

You decide to beautify the interface, to help Sally navigate the dashboard easily.

Cet exercice fait partie du cours

Building Dashboards with shinydashboard

Afficher le cours

Exercice interactif pratique

Passez de la théorie à la pratique avec l’un de nos exercices interactifs

Commencer l’exercice