Creates annotations for jsgraph that allows to display the result of peak picking

getAnnotations(peaks: array<Peak>, options: object): any
Parameters
peaks (array<Peak>)
options (object = {})
Name Description
options.fillColor string (default 'green')
options.strokeColor string (default 'red')
options.showKind string (default true) Display the kind, 'm', 'w', 'S'
options.showAssignment string (default true) Display the assignment
options.createFct function? (annotation, peak) => {}: callback allowing to add properties
Returns
any: array
Peak

Type: Object

Properties
wavenumber (number)
transmittance (number)
intensity (number)
kind (number)
assignment (number)
surfaceAnalysis(analysis: object, options: object): object
Parameters
analysis (object)
options (object = {})
Name Description
options.from number?
options.to number?
options.rescale object (default {})
options.rescale.min number?
options.rescale.max number?
options.normalization object?
Returns
object: