Hello, I've spent many hours trying to get the heat map selected cell to work. Here's how I have it setup. I've tried calling methods on the heatmap, trying to access fields of args, trying different events in the heatmap object such as cellClicked and have went through all the documentation and forum posts on the internet and nothing works. I got this same exact situation to work on treeview and grid, although they had more documentation to help me.
var heatmap = new ej.heatmap.HeatMap({
cellSettings: {
showLabel: true,
},
xAxis: {
labels: ['0', '500', '1000', '1500', '2000',
'2500', '3000', '3500', '4000']
},
yAxis: {
labels: ['0', '1000', '2000', '3000', '4000', '5000'],
},
dataSource: heatmapData,
legendSettings: {
position: 'Right',
showLabel: true,
height: "150"
},
showTooltip:true,
allowSelection: true,
enableMultiSelect: false,
cellSelected: heatmapClicked
}, '#heatmap');
function heatmapClicked(args) {
console.log(args.Value);
}