SpectraViewer

Summary
SpectraViewer
Functions
spectraviewer
Types
Options
Functions
setSpectrumIDShow spectrum loaded from ChemSpider by internal spectrum ID.

Functions

spectraviewer

Parameters

optionsInitialization Options
$('#specView').spectraviewer({
    width: 650,
    height: 350,
    specId: 0,
    widgetType: JSpecView|SpectrumJS|
});

Types

Options

Properties

widthWidth of the widget in pixels.  Default value - 650
heightHeight of the widget in pixels.  Default value - 350
specIdInternal ChemSpider spectrum Id.  Default value - 0
widgetslist of widgets what should be used for spectrum representation.  Default value - JSpecView|SpectrumJS|ChemDoodle

Functions

setSpectrumID

Show spectrum loaded from ChemSpider by internal spectrum ID.

Parameters

idSpectrum ID in ChemSpider DB
spectrum.setSpectrumID(6182);