example/public/ueditor/third-party/highcharts/highcharts.src.js
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;	
		});
		
	}
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;	
		});
		
	}
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 ; } ) ; }
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.
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 .