Black Lives Matter. Please consider donating to Black Girls Code today.

Gnuplot pm3d like plot in plotly.js

So, If I set pm3d in gnuplot then while plotting 3d plot we get a nice color gradient along the zaxis. How to achieve the same functionality in plotly.js

Here is a demo using intensity equal to z.