composition-plot

Home > composition-plot > Spectrum

Spectrum class

Signature:

declare class Spectrum 

Constructors

Constructor Modifiers Description
(constructor)(svg)   Constructs a new instance of the Spectrum class

Properties

Property Modifiers Type Description
axesGroup   Selection<BaseType, {}, null, undefined>  
dataGroup   Selection<BaseType, {}, null, undefined>  
dataTooltip   Selection<BaseType, {}, null, undefined>  
id   string  
lineColors   RGBColor[]  
margins   IMargins  
name   string  
offset   number  
onSelect   Function  
plotOptions   IPlotOptions  
showPoints   boolean  
spectra   { spectrum: ISpectrumProvider; sample: ISample; }[]  
svg   HTMLElement  
textColor   RGBColor  
xLog   boolean  
xRange?   [number, number] (Optional)
xScale   ScaleLinear<number, number> | ScaleLogarithmic<number, number>  
yLog   boolean  
yRange?   [number, number] (Optional)
yScale   ScaleLinear<number, number> | ScaleLogarithmic<number, number>  

Methods

Method Modifiers Description
drawAxes()    
drawSpectra()    
render()    
setAxes(xKey, yKey)    
setLineColors(colors)    
setOffset(offset)    
setOnSelect(onSelect)    
setScales()    
setShowPoints(show)    
setSpectra(spectra)    
setTextColor(color)    
setXLog(xLog)    
setXRange(xRange)    
setYLog(yLog)    
setYRange(yRange)