Hi team,
I have added a highchart map and with following options:
chartOptions = {
chart: {
map: worldMap,
proj4: proj4,
style: {
fontFamily: 'Open Sans',
},
events: {
drilldown: e => {
},
drillupall: e => {
},
drillup: e => {
},
render: e => {
},
},
},
exporting: {
enabled: false,
},
tooltip: {
enabled: true,
headerFormat: '',
pointFormat:
`<div class='px-2 py-1'><span><strong>{point.name}<strong></span><br/>` +
`<span>Viewers: <strong>{point.value}</strong></span></div>`,
backgroundColor: '#101c28',
borderWidth: 2,
style: {
color: '#ffffff',
},
useHTML: true,
},
credits: {
enabled: false,
},
title: {
text: '',
},
mapNavigation: {
enabled: true,
enableMouseWheelZoom: false,
buttonOptions: {
verticalAlign: 'bottom',
style: {
fill: '#FCFCFC',
color: '#FCFCFC',
cursor: 'pointer',
},
theme: {
fill: '#4A4B54',
r: 1,
stroke: '#1E1F21',
'stroke-width': 1,
states: {
hover: { fill: '#37373E', stroke: '#1E1F21' },
select: { fill: '#37373E', stroke: '#1E1F21' },
},
},
},
},
colorAxis: {
maxColor: 'rgba(35, 183, 229, 1)',
min: 1,
minColor: 'rgba(35, 183, 229, 0.1)',
type: 'logarithmic',
allowNegativeLog: true,
},
plotOptions: {
mapbubble: {
showInLegend: false,
colorAxis: false,
dataLabels: { enabled: true, format: '{point.name}' },
tooltip: {
enabled: true,
headerFormat: '',
pointFormat:
`<div class='px-2 py-1'><span><strong>{point.name}<strong></span><br/>` +
`<span>Viewers: <strong>{point.z}</strong></span></div>`,
},
},
mappoint: {
showInLegend: false,
marker: {
symbol: 'circle',
fillColor: 'white',
lineColor: '#ff6600',
radius: 4,
lineWidth: 2,
},
zIndex: 1000,
},
map: {
nullColor: 'none',
showInLegend: false,
},
series: {
borderColor: '#23b7e5',
cursor: 'pointer',
turboThreshold: 10000,
states: {
hover: {
borderWidth: 3,
color: 'rgba(5, 92, 167, 0.7)',
borderColor: '#055ca7',
},
},
dataLabels: {
color: 'white',
enabled: true,
formatter: function () {
if (this.point.value) {
return this.point.name;
}
},
style: { textShadow: 'none' },
},
},
},
legend: {
enabled: false,
useHTML: false,
},
drilldown: {
animation: {
duration: 0,
},
activeDataLabelStyle: {
color: '#FFFFFF',
textDecoration: 'none',
textOutline: '1px #000000',
},
drillUpButton: {
position: {
x: -18,
y: -18,
align: 'left',
verticalAlign: 'top',
},
},
},
series: this.mapData,
};
The variable this.mapData has the required data, the map shows up correctly with zoom button. And the zoom button is clickable through the mouse click. But if keyboard is used to go through the map, once the focus come to zoom + or - , pressing enter key/space key does not trigger the click on zoom button, hence not zooming in or out the graph does not work only with keyboard . can you please suggest what needs to be added?