HighCharts in R Shiny App -
i using highcharts in shiny app. when have following, works.
fluidrow( tags$head(tags$script(src = "https://code.highcharts.com/highcharts.js"), tags$script(src = "https://code.highcharts.com/highcharts-more.js"), tags$script(src = "https://code.highcharts.com/modules/exporting.js"), tags$script(src = "https://code.highcharts.com/modules/heatmap.js"), tags$style(type="text/css", ".shiny-output-error { visibility: hidden; }", ".shiny-output-error:before { visibility: hidden; }")
however goal not go through highcharts website , access highcharts folder locally. placed highcharts folder in root directory , did following.
fluidrow( tags$head(tags$script(src = "/highcharts/js/highcharts.js"), tags$script(src = "/highcharts/js/highcharts-more.js"), tags$script(src = "/highcharts/js/modules/exporting.js"), tags$script(src = "/highcharts/js/modules/heatmap.js"), tags$style(type="text/css", ".shiny-output-error { visibility: hidden; }", ".shiny-output-error:before { visibility: hidden; }")
i getting nothing errors. appreciated.
you need put files in www
folder in root of shiny app.
so based on path of /highcharts/js/modules/
have folder structure of:
root/ +-www/ +-highcharts/ +-js/ - hightcharts.js - highcharts-more.js +-modules/ - exporting.js - heatmap.js
Comments
Post a Comment