The 'click' event gets triggered only when clicked exactly inside the bar. This is not convenient if we have a bar with small width or height. When i hover the bar, some space around the bar is highlighted with full chart height and tooltip is displayed. i want to make the highlighted region clickable and the bar data should be available in the event. I have gone through the docs and tried chart.on('click', 'xAxis.category', function () {...}); But the function is not triggered.
In this demo, Alert is triggered only when i click inside a bar. How do i make the surrounding area clickable?
https://codesandbox.io/s/cocky-banzai-6j5pg?file=/src/Chart.js