title: Highcharts: Dynamically change axis on legendItemClick
body: <p>I'm trying to change the size of two yAxis for a Stockchart when a legend is clicked. I've tried this but neither of them work:</p>
  
  <pre><code>    plotOptions: {
          series: {
              events: {
                  legendItemClick: function(event) {
                      // does not change the height on the y axis
                      chart.yAxis[0].height = 5; 
                      chart.redraw();
  
                      // changes the size but throws: 
                      // Uncaught TypeError: Cannot read property 'options' of undefined 
                      var chartOptions = chart.options;
                      chartOptions.yAxis[0].height = 5; 
                      chart = new Highcharts.Chart(chartOptions);                                 
                  }
              },
          }
      },
  </code></pre>
  
  <p><a href="http://jsfiddle.net/uvL8f/" rel="nofollow">Fiddle here</a></p>