code: function () {
              var chart = this,
                optionsChart = chart.options.chart,
                widthOption = optionsChart.width,
                heightOption = optionsChart.height,
                renderTo = chart.renderToClone || chart.renderTo;
  
              // get inner width and height from jQuery (#824)
              if (!defined(widthOption)) {
                  chart.containerWidth = adapterRun(renderTo, 'width');
              }
              if (!defined(heightOption)) {
                  chart.containerHeight = adapterRun(renderTo, 'height');
              }
  
              chart.chartWidth = mathMax(0, widthOption || chart.containerWidth || 600); // #1393, 1460
              chart.chartHeight = mathMax(0, pick(heightOption,
                // the offsetHeight of an empty container is 0 in standard browsers, but 19 in IE7:
                chart.containerHeight > 19 ? chart.containerHeight : 400));
          }
docs: Get chart width and height according to options and container size