code: function () {
              var chart = this,
                reflow = function (e) {
                    chart.reflow(e);
                };
  
  
              addEvent(win, 'resize', reflow);
              addEvent(chart, 'destroy', function () {
                  removeEvent(win, 'resize', reflow);
              });
          }
docs: Add the event handlers necessary for auto resizing