Skip to content

feat(explore): heat map tooltip surfaces z-axis value alongside y-axis bucket#115560

Merged
nikkikapadia merged 4 commits into
masterfrom
nikki/feat/heat-map-tooltip-show-z-value
May 14, 2026
Merged

feat(explore): heat map tooltip surfaces z-axis value alongside y-axis bucket#115560
nikkikapadia merged 4 commits into
masterfrom
nikki/feat/heat-map-tooltip-show-z-value

Conversation

@nikkikapadia
Copy link
Copy Markdown
Member

@nikkikapadia nikkikapadia commented May 14, 2026

I've changed the tooltip for heat maps to use the y-axis time bucket and the z-axis value side by side. I've also gotten rid of the marker and series name on the tooltip because they're not needed for heat maps. Here's what it looks like:

Before (using y-axis value without units) After (using y-axis bucket and z-axis value)
image image

must be merged after #115413

@github-actions github-actions Bot added the Scope: Frontend Automatically applied to PRs that change frontend components label May 14, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 14, 2026

📊 Type Coverage Diff

✅ No new type safety issues introduced. Coverage: 93.52%

Comment thread static/app/components/charts/components/tooltip.tsx Outdated
);

if (serie.seriesType === 'heatmap') {
const zAxisCountValue = getSeriesValue(serie, 2).toString();
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tooltip shows log-transformed z-value instead of original count

Medium Severity

When scale is 'log', toSeries stores Math.log1p(zValue) at data index 2. The tooltip reads this transformed value via getSeriesValue(serie, 2) and displays it directly. Users see a meaningless logarithmic number (e.g., 6.91) instead of the actual count (e.g., 1000). The tooltip needs to reverse the transformation (via Math.expm1) or access the original value.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 602c176. Configure here.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not needed because the log scaling is only for the y-axis

@nikkikapadia nikkikapadia changed the title feat(explore): heat map tooltip surfaces z-axis value instead of y-axis feat(explore): heat map tooltip surfaces z-axis value alongside y-axis bucket May 14, 2026
Copy link
Copy Markdown
Contributor

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

There are 3 total unresolved issues (including 2 from previous reviews).

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit e032dc7. Configure here.

@nikkikapadia nikkikapadia marked this pull request as ready for review May 14, 2026 19:04
@nikkikapadia nikkikapadia requested review from a team as code owners May 14, 2026 19:04
Comment thread static/app/components/charts/components/tooltip.tsx
<HeatMapWidgetVisualization plottables={[new HeatMap(sampleLatencyHeatMap)]} />
</LargeWidget>
<p>
<strong>Hint:</strong> clicking on the chart will display the x-, y-, and z-axis
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fun fact: I was unsure if grammatically it should be "x-, y-, and z-axis" vs "x, y, and z-axis", so I searched it. Turns out it's called suspended hyphen, TIL!

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

omg wow i just guessed 🎉

Copy link
Copy Markdown
Contributor

@adrianviquez adrianviquez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🚀

@nikkikapadia nikkikapadia merged commit cc7ed59 into master May 14, 2026
74 checks passed
@nikkikapadia nikkikapadia deleted the nikki/feat/heat-map-tooltip-show-z-value branch May 14, 2026 19:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants