Skip to content

Commit 7af7594

Browse files
committed
Change Units UI for multi spectra
1 parent 0febb00 commit 7af7594

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/d3_multi/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,8 @@ class ViewerMulti extends React.Component {
112112
selectedAxes = { xUnit: '', yUnit: '' };
113113
}
114114
const { xUnit, yUnit } = selectedAxes;
115-
xxLabel = xUnit === '' ? xLabel : xUnit;
116-
yyLabel = yUnit === '' ? yLabel : yUnit;
115+
xxLabel = xUnit === '' ? `X (${xLabel})` : `X (${xUnit})`;
116+
yyLabel = yUnit === '' ? `Y (${yLabel})` : `Y (${yUnit})`;
117117
}
118118

119119
const filterSeed = seed;

0 commit comments

Comments
 (0)