Skip to content

Commit 566ad18

Browse files
committed
feat: Improve AUC value formatting with retention time
1 parent 1c80817 commit 566ad18

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/components/panel/info.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,9 @@ const aucValue = (integration) => {
105105
stackIntegration.forEach((inte) => {
106106
if (inte.absoluteArea) {
107107
const areaVal = inte.absoluteArea.toFixed(2);
108+
const rt = inte.xL.toFixed(3);
108109
const percent = (areaVal * 100 / sumVal).toFixed(2);
109-
const valStr = areaVal + " (" + percent + "%)"; // eslint-disable-line
110+
const valStr = `${rt} min (${percent}%)`;
110111
values.push(valStr);
111112
}
112113
});
@@ -304,7 +305,7 @@ const InfoPanel = ({
304305
(Format.isHplcUvVisLayout(layoutSt)) ? (
305306
<div className={classNames(classes.rowRoot, classes.rowOddSim)}>
306307
<span className={classNames(classes.tTxt, classes.tHead, 'txt-sv-panel-txt')}>
307-
Area under curve (AUC):
308+
HPLC UV/VIS
308309
</span>
309310
<br />
310311
<span className={classNames(classes.tTxt, classes.tTxtSim, 'txt-sv-panel-txt')}>

0 commit comments

Comments
 (0)