# Topographical 3D Surface Plot (Color based on X-axys)

**URL:** <https://community.plotly.com/t/topographical-3d-surface-plot-color-based-on-x-axys/4547>\
**Category:** plotly.js\
**Created:** [June 20, 2017, 4:11pm UTC](https://community.plotly.com/t/topographical-3d-surface-plot-color-based-on-x-axys/4547 "2017-06-20T16:11:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![turtlebeach](https://avatars.discourse-cdn.com/v4/letter/t/e19adc/32.png) [@turtlebeach](https://community.plotly.com/u/turtlebeach)\
**Post date:** [June 20, 2017, 4:11pm UTC](https://community.plotly.com/t/topographical-3d-surface-plot-color-based-on-x-axys/4547/1 "2017-06-20T16:11:34Z")

</div>

Hi,

I want to implement a 3D graph where the X-axys is the visible light wavelength (nm). I would like the graph X-axys to match the color (R-G-B) based on the value.

The topographical 3D surface plot seems to only allow me to have color based on the Z axys.

Is there any way with plotly to do this?

Thank you !

---

<div class="post-metadata">

**Author:** ![etienne](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/etienne/32/17_2.png) [@etienne](https://community.plotly.com/u/etienne)\
**Post date:** [June 20, 2017, 5:23pm UTC](https://community.plotly.com/t/topographical-3d-surface-plot-color-based-on-x-axys/4547/2 "2017-06-20T17:23:11Z")

</div>

Try using `surfacecolor` as in [https://codepen.io/etpinard/pen/YWwNxo](https://codepen.io/etpinard/pen/YWwNxo)
