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

Popular posts from this blog

c# - Binding a comma separated list to a List<int> in asp.net web api -

Delphi 7 and decode UTF-8 base64 -

html - Is there any way to exclude a single element from the style? (Bootstrap) -