SpecdrawJS: Full client-side mode - SampleSet spectra
SpecdrawJS renders a proton NMR spectrum of indomethacin directly in the browser from a JCAMP-DX file fetched via a URL. The interactive visualization displays the spectral trace with zooming and panning controls, enabling users to explore peak positions and intensities. The code initializes a `specdraw.App()` instance, binds it to the `#container` div, and loads the data from `rawgit.com` using d3.v3. Styling relies on `specdraw.min.css`, while the underlying data processing is handled entirely client-side by the SpecdrawJS library.
AI-generated descriptionThis example demonstrate using SpecdrawJS to handle jcamp-dx files easily. Proton spectrum of indomethacin is obtained from a URL and processed in the browser. The App offers full interactivity with the data.
For details about SpecdrawJS.
For more examples see NMRPro.