example/public/ueditor/third-party/highcharts/modules/map.src.js
function (chart) {
			var series = this,
				valueDecimals = chart.options.legend.valueDecimals,
				legendItems = [],
				name,
				from,
				to,
				fromLabel,
				toLabel,
				colorRange,
				valueRanges,
				gradientColor,
				grad,
				tmpLabel,
				horizontal = chart.options.legend.layout === 'horizontal';

			
			Highcharts.Series.prototype.init.apply(this, arguments);
			colorRange = series.options.colorRange;
			valueRanges = series.options.valueRanges;

			if (valueRanges) {
				each(valueRanges, function (range) {
					from = range.from;
					to = range.to;
					
					// Assemble the default name. This can be overridden by legend.options.labelFormatter
					name = '';
					if (from === UNDEFINED) {
						name = '< ';
					} else if (to === UNDEFINED) {
						name = '> ';
					}
					if (from !== UNDEFINED) {
						name += numberFormat(from, valueDecimals);
					}
					if (from !== UNDEFINED && to !== UNDEFINED) {
						name += ' - ';
					}
					if (to !== UNDEFINED) {
						name += numberFormat(to, valueDecimals);
					}
					
					// Add a mock object to the legend items
					legendItems.push(Highcharts.extend({
						chart: series.chart,
						name: name,
						options: {},
						drawLegendSymbol: seriesTypes.area.prototype.drawLegendSymbol,
						visible: true,
						setState: function () {},
						setVisible: function () {}
					}, range));
				});
				series.legendItems = legendItems;

			} else if (colorRange) {

				from = colorRange.from;
				to = colorRange.to;
				fromLabel = colorRange.fromLabel;
				toLabel = colorRange.toLabel;

				// Flips linearGradient variables and label text.
				grad = horizontal ? [0, 0, 1, 0] : [0, 1, 0, 0]; 
				if (!horizontal) {
					tmpLabel = fromLabel;
					fromLabel = toLabel;
					toLabel = tmpLabel;
				} 

				// Creates color gradient.
				gradientColor = {
					linearGradient: { x1: grad[0], y1: grad[1], x2: grad[2], y2: grad[3] },
					stops: 
					[
						[0, from],
						[1, to]
					]
				};

				// Add a mock object to the legend items.
				legendItems = [{
					chart: series.chart,
					options: {},
					fromLabel: fromLabel,
					toLabel: toLabel,
					color: gradientColor,
					drawLegendSymbol: this.drawLegendSymbolGradient,
					visible: true,
					setState: function () {},
					setVisible: function () {}
				}];

				series.legendItems = legendItems;
			}
		}
function (chart) {
			var series = this,
				valueDecimals = chart.options.legend.valueDecimals,
				legendItems = [],
				name,
				from,
				to,
				fromLabel,
				toLabel,
				colorRange,
				valueRanges,
				gradientColor,
				grad,
				tmpLabel,
				horizontal = chart.options.legend.layout === 'horizontal';

			
			Highcharts.Series.prototype.init.apply(this, arguments);
			colorRange = series.options.colorRange;
			valueRanges = series.options.valueRanges;

			if (valueRanges) {
				each(valueRanges, function (range) {
					from = range.from;
					to = range.to;
					
					// Assemble the default name. This can be overridden by legend.options.labelFormatter
					name = '';
					if (from === UNDEFINED) {
						name = '< ';
					} else if (to === UNDEFINED) {
						name = '> ';
					}
					if (from !== UNDEFINED) {
						name += numberFormat(from, valueDecimals);
					}
					if (from !== UNDEFINED && to !== UNDEFINED) {
						name += ' - ';
					}
					if (to !== UNDEFINED) {
						name += numberFormat(to, valueDecimals);
					}
					
					// Add a mock object to the legend items
					legendItems.push(Highcharts.extend({
						chart: series.chart,
						name: name,
						options: {},
						drawLegendSymbol: seriesTypes.area.prototype.drawLegendSymbol,
						visible: true,
						setState: function () {},
						setVisible: function () {}
					}, range));
				});
				series.legendItems = legendItems;

			} else if (colorRange) {

				from = colorRange.from;
				to = colorRange.to;
				fromLabel = colorRange.fromLabel;
				toLabel = colorRange.toLabel;

				// Flips linearGradient variables and label text.
				grad = horizontal ? [0, 0, 1, 0] : [0, 1, 0, 0]; 
				if (!horizontal) {
					tmpLabel = fromLabel;
					fromLabel = toLabel;
					toLabel = tmpLabel;
				} 

				// Creates color gradient.
				gradientColor = {
					linearGradient: { x1: grad[0], y1: grad[1], x2: grad[2], y2: grad[3] },
					stops: 
					[
						[0, from],
						[1, to]
					]
				};

				// Add a mock object to the legend items.
				legendItems = [{
					chart: series.chart,
					options: {},
					fromLabel: fromLabel,
					toLabel: toLabel,
					color: gradientColor,
					drawLegendSymbol: this.drawLegendSymbolGradient,
					visible: true,
					setState: function () {},
					setVisible: function () {}
				}];

				series.legendItems = legendItems;
			}
		}
function ( chart ) { var series = this , valueDecimals = chart . options . legend . valueDecimals , legendItems = [ ] , name , from , to , fromLabel , toLabel , colorRange , valueRanges , gradientColor , grad , tmpLabel , horizontal = chart . options . legend . layout === 'horizontal' ; Highcharts . Series . prototype . init . apply ( this , arguments ) ; colorRange = series . options . colorRange ; valueRanges = series . options . valueRanges ; if ( valueRanges ) { each ( valueRanges , function ( range ) { from = range . from ; to = range . to ; // Assemble the default name. This can be overridden by legend.options.labelFormatter name = '' ; if ( from === UNDEFINED ) { name = '< ' ; } else if ( to === UNDEFINED ) { name = '> ' ; } if ( from !== UNDEFINED ) { name += numberFormat ( from , valueDecimals ) ; } if ( from !== UNDEFINED && to !== UNDEFINED ) { name += ' - ' ; } if ( to !== UNDEFINED ) { name += numberFormat ( to , valueDecimals ) ; } // Add a mock object to the legend items legendItems . push ( Highcharts . extend ( { chart : series . chart , name : name , options : { } , drawLegendSymbol : seriesTypes . area . prototype . drawLegendSymbol , visible : true , setState : function ( ) { } , setVisible : function ( ) { } } , range ) ) ; } ) ; series . legendItems = legendItems ; } else if ( colorRange ) { from = colorRange . from ; to = colorRange . to ; fromLabel = colorRange . fromLabel ; toLabel = colorRange . toLabel ; // Flips linearGradient variables and label text. grad = horizontal ? [ 0 , 0 , 1 , 0 ] : [ 0 , 1 , 0 , 0 ] ; if ( ! horizontal ) { tmpLabel = fromLabel ; fromLabel = toLabel ; toLabel = tmpLabel ; } // Creates color gradient. gradientColor = { linearGradient : { x1 : grad [ 0 ] , y1 : grad [ 1 ] , x2 : grad [ 2 ] , y2 : grad [ 3 ] } , stops : [ [ 0 , from ] , [ 1 , to ] ] } ; // Add a mock object to the legend items. legendItems = [ { chart : series . chart , options : { } , fromLabel : fromLabel , toLabel : toLabel , color : gradientColor , drawLegendSymbol : this . drawLegendSymbolGradient , visible : true , setState : function ( ) { } , setVisible : function ( ) { } } ] ; series . legendItems = legendItems ; } }
get axis extremes from paths, not values
get axis extremes from paths not values