createSimpleFFTPlot

src/fftplot.js

Create a single amplitude plot of FFT data.

createSimpleFFTPlot(cssSelector: string, fftResult: FFTResult, config: SeismographConfig, loglog: boolean): any
Parameters
cssSelector (string) selection of the containing element, usually a div
fftResult (FFTResult) data to plot
config (SeismographConfig) configuration of the plot, note not all options are supported by fft plots
loglog (boolean = true) true for loglog plot, false for linlog
Returns
any: the plot

createOverlayFFTPlot

src/fftplot.js

Create a amplitude plot of multiple FFT data.

createOverlayFFTPlot(cssSelector: string, fftResults: Array<FFTResult>, config: SeismographConfig, loglog: boolean): any
Parameters
cssSelector (string) selection of the containing element, usually a div
fftResults (Array<FFTResult>) data to plot
config (SeismographConfig = new SeismographConfig()) configuration of the plot, note not all options are supported by fft plots
loglog (boolean = true) true for loglog plot, false for linlog
Returns
any: the plot
new FFTPlot(cssSelector: string, seismographConfig: SeismographConfig, fftResult: (FFTResult | Array<FFTResult>), loglog: boolean)
Parameters
cssSelector (string)
seismographConfig (SeismographConfig)
fftResult ((FFTResult | Array<FFTResult>))
loglog (boolean = true)
Instance Members
svgParent
seismographConfig
fftResults
xScale
yScale
svg
loglog
draw()

fftplot_css

src/fftplot.js

Defualt CSS for styling fft plots.

fftplot_css