html/scripts/highchart/modules/heatmap.src.js
function () {
		var grad,
			horiz = this.horiz,
			options = this.options,
			reversed = this.reversed;

		grad = horiz ? [+reversed, 0, +!reversed, 0] : [0, +!reversed, 0, +reversed]; // #3190
		this.legendColor = {
			linearGradient: { x1: grad[0], y1: grad[1], x2: grad[2], y2: grad[3] },
			stops: options.stops || [
				[0, options.minColor],
				[1, options.maxColor]
			]
		};
	}
function () {
		var grad,
			horiz = this.horiz,
			options = this.options,
			reversed = this.reversed;

		grad = horiz ? [+reversed, 0, +!reversed, 0] : [0, +!reversed, 0, +reversed]; // #3190
		this.legendColor = {
			linearGradient: { x1: grad[0], y1: grad[1], x2: grad[2], y2: grad[3] },
			stops: options.stops || [
				[0, options.minColor],
				[1, options.maxColor]
			]
		};
	}
function ( ) { var grad , horiz = this . horiz , options = this . options , reversed = this . reversed ; grad = horiz ? [ + reversed , 0 , + ! reversed , 0 ] : [ 0 , + ! reversed , 0 , + reversed ] ; // #3190 this . legendColor = { linearGradient : { x1 : grad [ 0 ] , y1 : grad [ 1 ] , x2 : grad [ 2 ] , y2 : grad [ 3 ] } , stops : options . stops || [ [ 0 , options . minColor ] , [ 1 , options . maxColor ] ] } ; }
Create the color gradient
Create the color gradient