If something is shocking, that means it's either surprising or the source of electrical shocks. In this joke it's both because the book failed commercially.
A book called ' Current Trends in Wiring your House ' turned out to be a shocking failure .