Skip to content

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

Open
Nicolass67 wants to merge 1 commit intomasterfrom
feat/ms-hover-intensity
Open

MS: show relative intensity with m/z on hover#295
Nicolass67 wants to merge 1 commit intomasterfrom
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
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

1 participant