How to plot color in scatter3d based on the value of z direction using backends: plotlyjs

Hi, I am trying to plot the scatter points using scatter3d, I am wondering how to color the points based on the value of z direction. Thanks

the marker_z may help me to achieve my goal, but the weird thing is that why it has so many white color, as shown below.


I prefer to get the based on the height value in z, which means that the color should be ranged from the dark blue to red. Thanks

Now, I got it, it is because of the setting of marker. Thanks