I tried this:
library(shiny)
library(echarts4r)
ui <- fluidPage(
fluidRow(
column(3, echarts4rBoxOutput("box1"))
)
)
server <- function(input, output, session) {
output$box1 <- renderEcharts4rBox({
echarts4rBox(cars, speed, dist, "Cake", type = "bar")
})
}
shinyApp(ui, server)
But:
Error: object 'speed' not found
I'm using the latest version of echarts4r, but not working.
Working code by providing a string x and y columns to the
echarts4rBoxfunction call:The problem comes from invalid transfer and conversion of inputs to the internal .build_data2 function. The
echarts4rBoxfunction was designed to accept strings or quotes for x and y inputs, but it does not work with quotes.