Is there a way to adjust the column width in Highcharts heatmap table based on its content, similar to a standard HTML table? Currently, longer entries overflow outside of the column as the heatmap maintains the same width for all columns, even if some have extra space.
Here is a Fiddle demonstrating the issue: http://jsfiddle.net/tvxgber9/
Below is the code (identical to the Fiddle provided):
Highcharts.chart('container', {
chart: {
type: 'heatmap',
},
title: {
text: 'Sales per employee per weekday'
},
xAxis: {
categories: ['Alexander', 'Marie', 'Maximilian', 'Sophia', 'Lukas', 'Maria', 'Leon']
},
yAxis: {
categories: ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday'],
title: null
},
colorAxis: {
min: 0,
minColor: '#FFFFFF',
maxColor: Highcharts.getOptions().colors[0]
},
series: [{
name: 'Sales per employee',
borderWidth: 1,
data: [[0, 0, 10], [0, 1, 19], [0, 2, 8], [0, 3, 24], [0, 4, 67], [1, 0, 92], [1, 1, 58], [1, 2, 78], [1, 3, 117], [1, 4, 48], [2, 0, 35], [2, 1, 15], [2, 2, 123456789123456789], [2, 3, 64],...
dataLabels: {
enabled: true,
color: '#000000'
}
}]
});