In this article is an experimental app inventor extension that will show the frequency (at an instant ) using the microphone.
You will need to follow the instructions for using the App Inventor Extensions test site. You might be able to graph the audio frequency provided by this extension and mimic the display you posted. This is not a true FFT audio display.
This is NOT a wide spectrum FFT Fast Fourier transform display
https://en.wikipedia.org/wiki/Fast_Fourier_transform) but an instantaneous sound sample) . It may be the best one can do at the moment with App Inventor. If you require more extensive sound analysis, you may have to use one of the Professional Android compilers (perhaps the Java based Eclipse or Android Studio 2) and use one of their sound libraries.. Sooner or later, someone might produce an extension using Java that might provide this function. There is none at present.
Another possibility is to use html as shown here
https://www.w3schools.com/html/html5_audio.asp depending on whether your
browser supports the audio element which a WebViewer probably does not. I have no idea how one might use it in AI2 along with the html code you indicate you have for displaying an analyzer ????
Regards,
Steve
.