A supplied numeric spectrum with labelled axes, caller-provided peak annotations and a complete paginated data table.
Preview
Supplied spectrum
Synthetic example data
Signal (counts)
Wavelength (nm)
Marked feature: Wavelength (nm) 500; Signal (counts) 15
Data table, 7 points
Rows 1–7 of 7
Supplied spectrum, supplied data
Point
Wavelength (nm)
Signal (counts)
1
400
1
2
440
2
3
480
9
4
500
15
5
520
4
6
560
2
7
600
1
In action
Inspect the signal
Acquisition 042 / Synthetic example
Recorded spectrum
Signal (counts)
Wavelength (nm)
Feature marked in the record: Wavelength (nm) 500; Signal (counts) 15
Data table, 7 points
Rows 1–7 of 7
Recorded spectrum, supplied data
Point
Wavelength (nm)
Signal (counts)
1
400
1
2
440
2
3
480
9
4
500
15
5
520
4
6
560
2
7
600
1
When to use
Use it for
Display supplied x/y spectra in acquisition order without smoothing, peak detection or resampling.
Supply axis labels and units; optional finite increasing domains must contain every point and annotation.
Up to 4096 points and 128 annotations; larger inputs receive a visible limit message without partial plotting.
Use the 50-row data pages to inspect every supplied point at its original numeric precision.
Not for
Interpreting a marked feature as an identified substance or validated scientific finding.
Using rounded axis tick labels as the original data, or relying on this display for signal processing.
Install
Three ways in. They share one source, so the pixels match whichever you pick.
1. Import the package
npm install @noorddev/vlak-react
// once, next to your app's root
import "@noorddev/vlak-react/css";
import { SpectrumPlot } from "@noorddev/vlak-react";
Precompiled React and one stylesheet. No compiler to configure. Per-component imports work too: @noorddev/vlak-react/components/spectrum-plot.
2. Vendor the source
npx @noorddev/vlak-cli add spectrum-plot
The StyleX leaf lands in components/vlak/ with its dependencies, for your own compiler to own. See StyleX.