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

How to name axis and show legend in mesh3d and surface 3d plots?

Only title is shown https://jsfiddle.net/rdmd9mab/ yet I want to see the legend and have axis named. How to do such thing for 3d plots?

Axis properties have to be wrapped inside a scene object in 3D graphs. See patched version:https://jsfiddle.net/rdmd9mab/1/

Not all trace types can have associated legend items. At the moment, surface and mesh3d don’t support legend items unfortunately.

Any updates on this: Not all trace types can have associated legend items. At the moment, surface and mesh3d don’t support legend items unfortunately.

Is it still unsupported?

1 Like

Yes, this is still unsupported.

This would be possible with next minor version.
Please refer to https://github.com/plotly/plotly.js/issues/2642