Skip to content

Commit

Permalink
fix(heatmap): wrong axes labels on hover (#2033)
Browse files Browse the repository at this point in the history
  • Loading branch information
nickofthyme authored Apr 26, 2023
1 parent 93cadcb commit 045fb03
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ export function shapeViewModel<D extends BaseDatum = Datum>(
y < chartDimensions.top + chartDimensions.height
) {
// look up for a Y axis elements
const yLabelKey = yInvertedScale(y);
const { y: yLabelKey } = getPanelPointCoordinates(x - chartDimensions.left, y);
const yLabelValue = textYValues.find((v) => v.value === yLabelKey);
if (yLabelValue) {
return yLabelValue;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export const getTooltipInfoSelector = createCustomCachedSelector(
key: spec.id,
},
value: `${pickedShapes.value}`,
formattedValue: `${pickedShapes.value}`,
formattedValue: `${pickedShapes.text}`,
datum: pickedShapes.value,
displayOnly: true,
});
Expand Down

0 comments on commit 045fb03

Please sign in to comment.