Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix category axis labels in hover.js to use xa._categories lookup
  • Loading branch information
nojaf committed Jan 13, 2026
commit d18df4deef01cba77e27a09d7b76b0208540edc9
4 changes: 2 additions & 2 deletions src/traces/heatmap/hover.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ module.exports = function hoverPoints(pointData, xval, yval, hovermode, opts) {
xl = xc ? _x[nx] : ((_x[nx] + _x[nx + 1]) / 2);
yl = yc ? _y[ny] : ((_y[ny] + _y[ny + 1]) / 2);

if(xa && xa.type === 'category') xl = x[nx];
if(ya && ya.type === 'category') yl = y[ny];
if(xa && xa.type === 'category') xl = xa._categories[nx];
if(ya && ya.type === 'category') yl = ya._categories[ny];

if(trace.zsmooth) {
x0 = x1 = xa.c2p(xl);
Expand Down