Why is my color map gradient (by node xyz value) working for x and y but not z?
I think that you have just to remap your values, it should work that way. So on the Z axis displacement is not maybe enough to be visualized properly. I would suggest you to try something like this (if you want to keep the actual colors) or to just move the sliders of your color ramp indices towards the center (narrow their distance).