No, they are not the same. Bar graphs show what frequencies the sound is made up of.

As has been said, fourier transform should do the trick.