Skip to content

MS: show relative intensity with m/z on hover#295

Merged
Nicolass67 merged 2 commits into
masterfrom
feat/ms-hover-intensity
May 19, 2026
Merged

MS: show relative intensity with m/z on hover#295
Nicolass67 merged 2 commits into
masterfrom
feat/ms-hover-intensity

Conversation

@Nicolass67
Copy link
Copy Markdown
Contributor

Description

This PR improves the mass spectrum (MS) view when moving the mouse over the chart or a bar.

Before: only m/z was shown (e.g. 694.151).
After: m/z and relative intensity as a percent of the base peak (e.g. 694.151 (100)), same idea as elsewhere for MS peak lists.

Changes

Cursor label (compass.js): m/z + base-peak %.
Bar hover tooltip (init.js, rect_focus.js): same format; passes spectrum max Y for the percent.

Closes #3027

Cursor label and bar tooltip use base-peak percent.

Made-with: Cursor
@Nicolass67 Nicolass67 changed the title MS: show relative intensity next to m/z on hover MS: show relative intensity with m/z on hover Apr 13, 2026
@Nicolass67 Nicolass67 merged commit ebf4c0d into master May 19, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

intensity display in mass spec

2 participants