I work with ror and use lazy_high_chart gem.
my view code is :
%= high_stock("my_id", @h) do |c| %>
<%="options.rangeSelector= {inputEditDateFormat: '%b %e, %Y',buttons: [{type: 'month',count: 1,text: '1m'}, {type: 'month',count: 3,text: '3m'}, {type: 'month',count: 6,text: '6m'}, {type: 'year',count: 1,text: '1y'}, {type: 'all',text: 'All'}]}"%>
<%="options.xAxis.events.setExtremes = function() { alert 'ho';}" %>
<%end %>
The rangeSelector setting is o.k but when I add the xaxis events(or xaxis.other parameter)
I got an error
“options.xAxis is undefined”
In the gem readme file I saw very similar exemple:
https://github.com/michelson/lazy_high_charts
Can you help me?
Thanks in advance
you need to add :
before: