【发布时间】:2019-12-10 20:33:21
【问题描述】:
我有一个闪亮的仪表板,一行中有 8 个框。要将它们放在一行上,我需要将宽度设置为 1.5(共 12 个)。
当我这样做时,每个盒子都会占据一整行:
fluidRow(
box(width = 1.5, title = "Sample Flow", background = "black", dygraphOutput("plot5", height = 150)),
box(width = 1.5, title = "Last 24 Hrs", background = "black", dygraphOutput("plot6", height = 150)),
box(width = 1.5, title = "Sample Flow", background = "black", dygraphOutput("plot7", height = 150)),
box(width = 1.5, title = "Last 24 Hrs", background = "black", dygraphOutput("plot8", height = 150)),
box(width = 1.5, title = "Sample Flow", background = "black", dygraphOutput("plot9", height = 150)),
box(width = 1.5, title = "Last 24 Hrs", background = "black", dygraphOutput("plot10", height = 150)),
box(width = 1.5, title = "Sample Flow", background = "black", dygraphOutput("plot11", height = 150)),
box(width = 1.5, title = "Last 24 Hrs", background = "black", dygraphOutput("plot12", height = 150))
),
有没有什么办法可以把 8 个盒子放在一排,填满整个窗口?
【问题讨论】:
-
您确定可以将浮点数设置为宽度吗?
标签: r shiny shinydashboard