html/scripts/highchart/modules/heatmap.src.js
function (legend, item) {
		var padding = legend.padding,
			legendOptions = legend.options,
			horiz = this.horiz,
			box,
			width = pick(legendOptions.symbolWidth, horiz ? 200 : 12),
			height = pick(legendOptions.symbolHeight, horiz ? 12 : 200),
			labelPadding = pick(legendOptions.labelPadding, horiz ? 16 : 30),
			itemDistance = pick(legendOptions.itemDistance, 10);

		this.setLegendColor();

		// Create the gradient
		item.legendSymbol = this.chart.renderer.rect(
			0,
			legend.baseline - 11,
			width,
			height
		).attr({
			zIndex: 1
		}).add(item.legendGroup);
		box = item.legendSymbol.getBBox();

		// Set how much space this legend item takes up
		this.legendItemWidth = width + padding + (horiz ? itemDistance : labelPadding);
		this.legendItemHeight = height + padding + (horiz ? labelPadding : 0);
	}
function (legend, item) {
		var padding = legend.padding,
			legendOptions = legend.options,
			horiz = this.horiz,
			box,
			width = pick(legendOptions.symbolWidth, horiz ? 200 : 12),
			height = pick(legendOptions.symbolHeight, horiz ? 12 : 200),
			labelPadding = pick(legendOptions.labelPadding, horiz ? 16 : 30),
			itemDistance = pick(legendOptions.itemDistance, 10);

		this.setLegendColor();

		// Create the gradient
		item.legendSymbol = this.chart.renderer.rect(
			0,
			legend.baseline - 11,
			width,
			height
		).attr({
			zIndex: 1
		}).add(item.legendGroup);
		box = item.legendSymbol.getBBox();

		// Set how much space this legend item takes up
		this.legendItemWidth = width + padding + (horiz ? itemDistance : labelPadding);
		this.legendItemHeight = height + padding + (horiz ? labelPadding : 0);
	}
function ( legend , item ) { var padding = legend . padding , legendOptions = legend . options , horiz = this . horiz , box , width = pick ( legendOptions . symbolWidth , horiz ? 200 : 12 ) , height = pick ( legendOptions . symbolHeight , horiz ? 12 : 200 ) , labelPadding = pick ( legendOptions . labelPadding , horiz ? 16 : 30 ) , itemDistance = pick ( legendOptions . itemDistance , 10 ) ; this . setLegendColor ( ) ; // Create the gradient item . legendSymbol = this . chart . renderer . rect ( 0 , legend . baseline - 11 , width , height ) . attr ( { zIndex : 1 } ) . add ( item . legendGroup ) ; box = item . legendSymbol . getBBox ( ) ; // Set how much space this legend item takes up this . legendItemWidth = width + padding + ( horiz ? itemDistance : labelPadding ) ; this . legendItemHeight = height + padding + ( horiz ? labelPadding : 0 ) ; }
The color axis appears inside the legend and has its own legend symbol
The color axis appears inside the legend and has its own legend symbol