title: ExtJs dynamically set axes maximum value
body: <p>I would like to dynamically change the axis maximum limit of an ExtJS 4.x chart.</p>
  
  <p>I tried using a listener <code>beforerefresh</code> but this has no effect:</p>
  
  <pre><code>var chart = Ext.create('Ext.chart.Chart', {
  ...
  listeners: {
        beforerefresh(me, eOpts)
        {
          // set y-axes to max(raw_value)
          console.log('before refresh');
          // set maximum axis value of Y axis to 0.1
          me.axes.getAt(1).maximum = 0.1;
        }
      },
  </code></pre>
  
  <p>The code is reached, but using <code>me.axes</code> does not seem to have any effect at all.</p>
  
  <p>What is the correct way to do it?</p>
  
  <p>Thanks</p>