# Can you define more than one text= def for go.Scatter hovertext?

**URL:** https://community.plotly.com/t/can-you-define-more-than-one-text-def-for-go-scatter-hovertext/73714
**Category:** Dash Python
**Created:** [March 20, 2023, 5:17am UTC](https://community.plotly.com/t/can-you-define-more-than-one-text-def-for-go-scatter-hovertext/73714 "2023-03-20T05:17:57Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![marketemp](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/marketemp/32/11523_2.png) [@marketemp](https://community.plotly.com/u/marketemp)
#### Post date: [March 20, 2023, 5:17am UTC](https://community.plotly.com/t/can-you-define-more-than-one-text-def-for-go-scatter-hovertext/73714/1 "2023-03-20T05:17:57Z")

</div>

I am using the text field to dynamically define field=value line in my go.Scatter hovertext. However I need two or three such fields. Is there a way to do this?

---

<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 20, 2023, 6:25am UTC](https://community.plotly.com/t/can-you-define-more-than-one-text-def-for-go-scatter-hovertext/73714/2 "2023-03-20T06:25:50Z")

</div>

Hi, I think you could use `customdata`

> [@How to customize the hovering text when it is another column rather than the columns introduced for axes?](https://community.plotly.com/t/how-to-customize-the-hovering-text-when-it-is-another-column-rather-than-the-columns-introduced-for-axes/70717/2):
>
> Hey @Peyman , I can’t verify this right now, but you might be able to use the customdata argument. EDIT it works: import plotly.express as px import plotly.graph\_objects as go import pandas as pd # datasource df = px.data.iris() color\_dict = {1:'red',2:'blue',3:'green'} colors = [color\_dict[i] for i in df.species\_id] # create figure + trace fig = go.Figure() fig.add\_scatter3d( x=df.sepal\_length, y=df.sepal\_width, z=df.petal\_width, # here the additional data is added cu…
