Add eventData handler to heatmap for proper click event data by nojaf · Pull Request #7686 · plotly/plotly.js

Fixes #7685

This PR adds an eventData handler to the heatmap trace module, enabling proper plotly_click event data with x, y, and z values.

Also fixes a bug in hover.js where category axis labels were incorrectly returning numeric boundary values instead of the actual category labels.

Changes:

  • src/traces/heatmap/index.js - Register the eventData handler
  • src/traces/heatmap/event_data.js - New file implementing the event data extraction
  • src/traces/heatmap/hover.js - Fix category axis label lookup to use `xa._categories[nx]