私はrorで作業し、lazy_high_chart gemを使用します。Lazy_high_chart:options.xaxが定義されていないのはなぜですか?
%= 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 %>
rangeSelector設定はOKですが、私はx軸のイベント(またはxaxis.otherパラメータ)を追加するとき 私は
「はoptions.xAxisが定義されていない」エラーを得た: 私の見解コードがあります宝石のReadmeファイルに
私は非常によく似たexempleを見た: https://github.com/michelson/lazy_high_charts
あなたは私を助けることができますか?事前
お使いのコントローラのコードは次のように見えるんか? – Mark
私は成功しました(この質問の回答を追加しました) ありがとうございました。 – Batty