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

A amplitude plot of fft data.

new FFTPlot(cssSelector: string, seismographConfig: SeismographConfig, fftResult: (FFTResult | Array<FFTResult>), loglog: boolean)
Parameters
cssSelector (string) selector or d3 selection
seismographConfig (SeismographConfig) config of the plot, not all values are used
fftResult ((FFTResult | Array<FFTResult>)) fft data to plot
loglog (boolean = true) log or linear frequency
Instance Members
svgParent
seismographConfig
fftResults
xScale
yScale
svg
loglog
draw()

fftplot_css

src/fftplot.js

Defualt CSS for styling fft plots.

fftplot_css