17  Dashboards

Just like you can use Quarto to create documents, websites, books, etc., you can also use it to create dashboards. The dashboards gallery is a great place to peruse some dashboard examples made in Quarto. As you do so, pay attention to whether they’re organized with content in columns first and then broken into rows or in rows first and then broken into columns. This thinking process will help you design your own dashboards as well.

A Quarto dashboard is a single notebook (either .qmd or .ipynb) where format: dashboard.

17.1 Dashboard basics

Dashboards are composed of cards. Cards can be arranged into rows and columns. Pages, tabsets, and sidebars allow for more advanced layouts.

---
title: "My first Quarto dashboard"
format: dashboard
---

```{r}
library(ggplot2)
```

```{r}
ggplot(mpg, aes(x = cty, y = hwy)) +
  geom_point()
```

```{r}
ggplot(mpg, aes(x = drv)) +
  geom_bar()
```

17.2 Components

Navigation bar and pages, sidebars, rows and columns, tabsets, and cards.

17.2.3 Rows and columns

Rows and columns using markdown heading, with optional attributes to control height, width, etc.

17.2.4 Tabsets

Tabsets to further divide content.

17.2.5 Cards

17.3 Computational cells