Box
Renders a data box in shiny.
echarts4rBox( data, x, y, text = "", subtext = "", type = c("bar", "line", "scatter", "area", "step"), ..., color = "#ffffff", text_color = "#ffffff", background_color = "#293c55", step = c("start", "middle", "end"), title_args = list(), tooltip = list(trigger = "axis") )
data |
A dataframe containing data to plot. |
x, y |
Bare column name of variables to draw. |
text, subtext |
Title and subtitle of box. |
type |
Chart type to draw. |
... |
Additional arguments to pass to the serie. |
color |
Color of chart in box. |
text_color |
Color of text. |
background_color |
Color of box. |
step |
Step method, only used if |
title_args |
Additional arguments to add to the title. |
tooltip |
Tooltip to use. |
library(shiny) ui <- fluidPage( fluidRow( column(3, echarts4rBoxOutput("box1")) ) ) server <- function(input, output) { output$box1 <- renderEcharts4rBox({ echarts4rBox(cars, speed, dist, "Cars", type = "bar") }) } ## Not run: shinyApp(ui, server) ## End(Not run)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.