silent_hunter
silent_hunter

Reputation: 2508

Sizing ValueBox in RMarkdown

I am using RMarkdown with Flexidashboards and I want to put four value boxes in same row. I try with this lines of code :

Summary {data-orientation=columns} 
===========================================

### BOX1
```{r,eval=TRUE}
valueBox(52,
         icon = "fa-area-chart",color="info")
```

### BOX2

```{r,eval=TRUE}
valueBox(53,
         icon = "fa-area-chart")
```

### BOX3

```{r,eval=TRUE}
valueBox(54, 
         icon = "fa-area-chart")
```

### BOX4

```{r,eval=TRUE}
valueBox(55, 
         icon = "fa-area-chart")
```

But unfortunately this value box is wide as the whole page and you can see how is look like on pic below

enter image description here

So can anybody help me how to put all this boxes in same row ?

Upvotes: 0

Views: 292

Answers (1)

julien.leroux5
julien.leroux5

Reputation: 1558

What about using:

Summary {data-orientation=rows} 

This will put all boxes next to each other on one row, and will put them on several lines if the window is resized.

Upvotes: 2

Related Questions