How is it possible to wrap a function in rHighcharts?
For instance, I want to accomplish that the zoom is set to some values when the chart is loaded, with something like this:
a$chart(
type='line',
zoomType= 'xy',
events=list(load=function() {chart.xAxis[0].setExtremes(6, 10);})
)
Is there a standard way how to formulate this and highchart functions in general in R?
Maybe I should brake it down. Lets say I wanted a greeting message after the chart loaded. With the notation from Ramnaths comment, I'd do it like
a$chart(
type='line',
zoomType= 'xy',
events=list(load=!#alert('hello');#!)
)
Is there a way to make this work?