example/public/ueditor/third-party/highcharts/modules/map.src.js
function () {
			var series = this,
				dataMin = Number.MAX_VALUE,
				dataMax = Number.MIN_VALUE;
	
			series.generatePoints();
	
			each(series.data, function (point) {
				
				point.shapeType = 'path';
				point.shapeArgs = {
					d: series.translatePath(point.path)
				};
				
				// TODO: do point colors in drawPoints instead of point.init
				if (typeof point.y === 'number') {
					if (point.y > dataMax) {
						dataMax = point.y;
					} else if (point.y < dataMin) {
						dataMin = point.y;
					}
				}
			});
			
			series.translateColors(dataMin, dataMax);
		}
function () {
			var series = this,
				dataMin = Number.MAX_VALUE,
				dataMax = Number.MIN_VALUE;
	
			series.generatePoints();
	
			each(series.data, function (point) {
				
				point.shapeType = 'path';
				point.shapeArgs = {
					d: series.translatePath(point.path)
				};
				
				// TODO: do point colors in drawPoints instead of point.init
				if (typeof point.y === 'number') {
					if (point.y > dataMax) {
						dataMax = point.y;
					} else if (point.y < dataMin) {
						dataMin = point.y;
					}
				}
			});
			
			series.translateColors(dataMin, dataMax);
		}
function ( ) { var series = this , dataMin = Number . MAX_VALUE , dataMax = Number . MIN_VALUE ; series . generatePoints ( ) ; each ( series . data , function ( point ) { point . shapeType = 'path' ; point . shapeArgs = { d : series . translatePath ( point . path ) } ; // TODO: do point colors in drawPoints instead of point.init if ( typeof point . y === 'number' ) { if ( point . y > dataMax ) { dataMax = point . y ; } else if ( point . y < dataMin ) { dataMin = point . y ; } } } ) ; series . translateColors ( dataMin , dataMax ) ; }
Add the path option for data points. Find the max value for color calculation.
Add the path option for data points . Find the max value for color calculation .