grafana-plotly-panel icon indicating copy to clipboard operation
grafana-plotly-panel copied to clipboard

feature request: enable FFT display in Hertz instead of bin-index

Open bijwaard opened this issue 6 years ago • 1 comments

Dear plotly panel developers, I am trying to plot a series of values from an FFT engine, and the x-axis is now on index of FFT bins while I would like to show frequencies on the x-axis. This would require a multiplication of the index numbers on x-axis with 4000/4096, i.e. the FFT is 4096 wide and represents frequencies upto 4kHz. As you can see in the figure below for FFT of voltage at 4KHz (limited upto 512 FFT bins), and the harmonics at 50Hz multiples are not matching with the x-axis since it is not exactly represented in Hertz.

Kind regards, Dennis BIjwaard image

bijwaard avatar Oct 01 '19 17:10 bijwaard

Dear all, Just for reference, here is a figure taking the same type of FFT data for 4kHz voltage with the x-axis corrected in a Python plotter using matplotlib. As you can see, the harmonics are precisely at the 50Hz multiples of the Dutch power-grid.

I would however prefer to show the FFTs nicely in grafana using the plotly plugijn, together with the time series of voltage and current.

Kind regards, Dennis image

bijwaard avatar Oct 02 '19 22:10 bijwaard