jbkunst / highcharter

R wrapper for highcharts
http://jkunst.com/highcharter/
Other
720 stars 148 forks source link

Timezone adjustment via time object, using hchart() #804

Closed lyndon-bird closed 10 months ago

lyndon-bird commented 11 months ago

I'm looking to adjust a charts datetime based on timezone. This can be done via the time object in highchart(). Is there a way to also do the same using hchart()?

https://api.highcharts.com/highcharts/time

Example with timezone adjusted using highchart() :

highchart(hc_opts = list(time=list(useUTC=F))) %>% hc_add_series(weather, 'line', hcaes(x=date, y=mean_temperaturec)) %>% hc_xAxis(type='datetime', title=NULL)

Example with hchart (no timezone adjustment) hchart(weather, 'line', hcaes(x=date, y=mean_temperaturec))

Thanks in advance for help.