JavaScript
$(function () {
$('#container').highcharts({
chart: {
type: 'heatmap',
marginTop: 40,
marginBottom: 80,
plotBorderWidth: 1
},
title: {
text: 'Sales per employee per weekday'
},
xAxis: {
categories: ['Alexander', 'Marie', 'Maximilian', 'Sophia', 'Lukas', 'Maria', 'Leon', 'Anna', 'Tim', 'Laura']
},
yAxis: [{
categories: ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday'],
title: null
},{
linkedTo: 0,
tickLength:100,
tickWidth: 2,
opposite: true,
title: null,
lineWidth: 2,
categories: ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday'],
},{
linkedTo: 0,
tickLength:100,
tickWidth: 2,
opposite: true,
title: null,
lineWidth: 2,
categories: ['Smith', 'Jackson', 'Doe', 'Doe', 'Doe'],
},{
linkedTo: 0,
gridLineWidth: 2,
tickLength:100,
tickWidth: 2,
opposite: true,
title: null,
lineWidth: 2,
categories: ['10', '20', '40', '59', '23'],
}],
colorAxis: {
min: 0,
minColor: '#FFFFFF',
maxColor: Highcharts.getOptions().colors[0]
},
legend: {
enabled: false,
align: 'right',
layout: 'vertical',
margin: 0,
verticalAlign: 'top',
y: 25,
symbolHeight: 280
},
tooltip: {
formatter: function () {
return '<b>' + this.series.xAxis.categories[this.point.x] + '</b> sold <br><b>' +
this.point.value + '</b> items on <br><b>' + this.series.yAxis.categories[this.point.y] + '</b>';
}
},
series:...