title: setData and setCategory highcharts from rails
body: <p>I'm using highcharts 3.0.1 with ruby on rails.</p>
  
  <p>basically i have finally this javascript ( in an ajax/remote request) :</p>
  
  <pre><code>var chart = $('#my_bar_div').highcharts();
  chart.xAxis[0].setCategories(["cat1", "cat2", "cat4"]);
  chart.series[0].setData([6.0,7.0,8.0]);
  </code></pre>
  
  <p>ruby version _updatechart.js.erb:</p>
  
  <pre><code>var chart = $('#my_bar_div').highcharts();
  chart.xAxis[0].setCategories(&lt;%= @qids.to_s.html_safe %&gt;);
  chart.series[0].setData(&lt;%= @average_values.to_json %&gt;);
  </code></pre>
  
  <p>i'm going back from 6 to 3 categories/rows, I use a vertical column chart:</p>
  
  <pre><code>@bar = LazyHighCharts::HighChart.new('column') do |f|
    f.series(:name=&gt;'Punkte',:data=&gt; @average_values )   
    f.title({ :text=&gt;"Auswertung Fragen " + @theobjects.name })
  
    ###  Options for Bar
    f.options[:chart][:defaultSeriesType] = "bar"
    f.plot_options({:series=&gt;{:stacking=&gt;"normal"}, :bar =&gt; { :dataLabels =&gt; { :enabled =&gt; true }}})
    f.options[:xAxis] = {:plot_bands =&gt; "none", :title=&gt;{:text=&gt;""}, :categories =&gt; @qids}
    f.options[:yAxis] = {:title =&gt; { :text =&gt;'Punkte', :align =&gt;'high'}, :labels =&gt; { :overflow =&gt; 'justify' } }
  end
  </code></pre>
  
  <p>it resizes the categories, but does not redraw the columns, I tried almost everything without success.</p>
  
  <p>Maybe you got any ideas?</p>
  
  <p>Thanks, Patrick</p>