code: function () {
  		var chart = this,
  			optionsChart = chart.options.chart,
  			klass,
  			seriesOptions = chart.options.series,
  			i,
  			value;
  			
  			
  		each(['inverted', 'angular', 'polar'], function (key) {
  			
  			// The default series type's class
  			klass = seriesTypes[optionsChart.type || optionsChart.defaultSeriesType];
  			
  			// Get the value from available chart-wide properties
  			value = (
  				chart[key] || // 1. it is set before
  				optionsChart[key] || // 2. it is set in the options
  				(klass && klass.prototype[key]) // 3. it's default series class requires it
  			);
  	
  			// 4. Check if any the chart's series require it
  			i = seriesOptions && seriesOptions.length;
  			while (!value && i--) {
  				klass = seriesTypes[seriesOptions[i].type];
  				if (klass && klass.prototype[key]) {
  					value = true;
  				}
  			}
  	
  			// Set the chart property
  			chart[key] = value;	
  		});
  		
  	}
docs: Detect whether a certain chart property is needed based on inspecting its options
  and series. This mainly applies to the chart.invert property, and in extensions to
  the chart.angular and chart.polar properties.