# Displaying Z values in 3D Surface Plot

**URL:** <https://community.plotly.com/t/displaying-z-values-in-3d-surface-plot/73410>\
**Category:** plotly.js\
**Tags:** question\
**Created:** [March 9, 2023, 3:30pm UTC](https://community.plotly.com/t/displaying-z-values-in-3d-surface-plot/73410 "2023-03-09T15:30:02Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![AIMPED](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/aimped/32/21758_2.png) [@AIMPED](https://community.plotly.com/u/AIMPED)\
**Post date:** [March 18, 2023, 11:45pm UTC](https://community.plotly.com/t/displaying-z-values-in-3d-surface-plot/73410/8 "2023-03-18T23:45:44Z")

</div>

I just noticed the plotly JS tag on this topic 🙈

I think the easiest way to show the data points would be to add a scatter trace, setting the marker color to rgba(0,0,0,0) and showing the text only, pretty much like here:

> [@Custom marker characters](https://community.plotly.com/t/custom-marker-characters/73527/2):
>
> Hi @abhinavk welcome to the forums. You could use the text argument: import plotly.graph\_objects as go import numpy as np fig = go.Figure() for fac, txt in enumerate('ABCDE'): fig.add\_scatter( x=np.arange(1, 10), y=np.arange(1, 10) + 10\*fac, mode='text+lines', text=txt, name=f'trace\_{txt}') fig.show() creates: [newplot (10)]

Sorry, I can’t really help with JS 😉

---

_[View the full topic](https://community.plotly.com/t/displaying-z-values-in-3d-surface-plot/73410)._
