example/public/ueditor/third-party/highcharts/modules/map.src.js
function (dataMin, dataMax) {
			
			var seriesOptions = this.options,
				valueRanges = seriesOptions.valueRanges,
				colorRange = seriesOptions.colorRange,
				colorKey = this.colorKey,
				from,
				to;

			if (colorRange) {
				from = Color(colorRange.from);
				to = Color(colorRange.to);
			}
			
			each(this.data, function (point) {
				var value = point[colorKey],
					range,
					color,
					i,
					pos;

				if (valueRanges) {
					i = valueRanges.length;
					while (i--) {
						range = valueRanges[i];
						from = range.from;
						to = range.to;
						if ((from === UNDEFINED || value >= from) && (to === UNDEFINED || value <= to)) {
							color = range.color;
							break;
						}
							
					}
				} else if (colorRange && value !== undefined) {

					pos = 1 - ((dataMax - value) / (dataMax - dataMin));
					color = value === null ? seriesOptions.nullColor : tweenColors(from, to, pos);
				}

				if (color) {
					point.color = null; // reset from previous drilldowns, use of the same data options
					point.options.color = color;
				}
			});
		}
function (dataMin, dataMax) {
			
			var seriesOptions = this.options,
				valueRanges = seriesOptions.valueRanges,
				colorRange = seriesOptions.colorRange,
				colorKey = this.colorKey,
				from,
				to;

			if (colorRange) {
				from = Color(colorRange.from);
				to = Color(colorRange.to);
			}
			
			each(this.data, function (point) {
				var value = point[colorKey],
					range,
					color,
					i,
					pos;

				if (valueRanges) {
					i = valueRanges.length;
					while (i--) {
						range = valueRanges[i];
						from = range.from;
						to = range.to;
						if ((from === UNDEFINED || value >= from) && (to === UNDEFINED || value <= to)) {
							color = range.color;
							break;
						}
							
					}
				} else if (colorRange && value !== undefined) {

					pos = 1 - ((dataMax - value) / (dataMax - dataMin));
					color = value === null ? seriesOptions.nullColor : tweenColors(from, to, pos);
				}

				if (color) {
					point.color = null; // reset from previous drilldowns, use of the same data options
					point.options.color = color;
				}
			});
		}
function ( dataMin , dataMax ) { var seriesOptions = this . options , valueRanges = seriesOptions . valueRanges , colorRange = seriesOptions . colorRange , colorKey = this . colorKey , from , to ; if ( colorRange ) { from = Color ( colorRange . from ) ; to = Color ( colorRange . to ) ; } each ( this . data , function ( point ) { var value = point [ colorKey ] , range , color , i , pos ; if ( valueRanges ) { i = valueRanges . length ; while ( i -- ) { range = valueRanges [ i ] ; from = range . from ; to = range . to ; if ( ( from === UNDEFINED || value >= from ) && ( to === UNDEFINED || value <= to ) ) { color = range . color ; break ; } } } else if ( colorRange && value !== undefined ) { pos = 1 - ( ( dataMax - value ) / ( dataMax - dataMin ) ) ; color = value === null ? seriesOptions . nullColor : tweenColors ( from , to , pos ) ; } if ( color ) { point . color = null ; // reset from previous drilldowns, use of the same data options point . options . color = color ; } } ) ; }
In choropleth maps, the color is a result of the value, so this needs translation too
In choropleth maps the color is a result of the value so this needs translation too