How to set highchart global options IN R

后端 未结 3 1425
滥情空心
滥情空心 2021-01-17 03:25

I see a lot of examples in javascript but I cannot find an example to do it in R

Here is the api link: http://api.highcharts.com/highcharts#global

I am tryin

3条回答
  •  梦谈多话
    2021-01-17 03:41

    First you have to switch of the useUTC flag to FALSE. Than you can set the timezoneOffset as you wish and save the options back.

    global <- getOption("highcharter.global")
    global$useUTC <- FALSE
    global$timezoneOffset <- -300
    options(highcharter.global = global)
    

    For better understanding make sure you take a look at global:

    str(global)
    

提交回复
热议问题