XD-DENG / ECharts2Shiny

To insert interactive charts from ECharts into R Shiny applications (在R Shiny app中插入ECharts可交互图形)
https://CRAN.R-project.org/package=ECharts2Shiny
GNU General Public License v2.0
130 stars 47 forks source link

Theme parameter of renderGauge() has no effect #59

Closed stelmath closed 5 years ago

stelmath commented 5 years ago

Hello,

I am trying to add a Gauge and currently look at the manual for renderGauge. I notice that the suggested theme options ( "default", "roma", "infographic", "macarons", "vintage", "shine", "caravan", "dark-digerati", "jazz", and "london") produce the same result when I run the example from the manual:

if (interactive()) {
  library(shiny)
  library(ECharts2Shiny)

  # Server function -------------------------------------------
  server <- function(input, output) {
    # Call functions from ECharts2Shiny to render charts
    renderGauge(div_id = "test",rate = 99, gauge_name = "Finish Rate", theme = "dark-digerati")
  }

  # UI layout -------------------------------------------------
  ui <- fluidPage(
    # We MUST load the ECharts javascript library in advance
    loadEChartsLibrary(),

    tags$div(id="test", style="width:50%;height:400px;"),
    deliverChart(div_id = "test")
  )

  # Run the application --------------------------------------
  shinyApp(ui = ui, server = server)
}

Is this only me? I am trying to replicate the design found here that looks really awesome, but I can't. Thank you!

stelmath commented 5 years ago

Nevermind, I found about loadEChartsTheme in the documentation of ECharts2Shiny. I apologize for opening the issue, since this is not really an issue. Thanks for the awesome library!

XD-DENG commented 5 years ago

Thanks @stelmath for using my library and sharing the issue.