I used traces for data labels so as to enhance performance. But on doing so there is a gap present at the ends of the heatmap
Here is the labels code
{
hoverinfo: 'skip',
mode: 'text',
showlegend: false,
text: [
'Text1',
'Text2',
'Text3',
'Text4',
'Text5',
],
x: [
'Pollution',
'Pollution',
'Pollution',
'Pollution',
'Pollution',
],
y: [
'New York',
'Mumbai',
'Washington DC',
'Canberra',
'Paris',
],
},
Any way to fix this gap? I put stackblitz link below for reference