# Labels of individual points in boxplot

**URL:** <https://community.plotly.com/t/labels-of-individual-points-in-boxplot/4576>\
**Category:** plotly.js\
**Created:** [June 22, 2017, 3:58pm UTC](https://community.plotly.com/t/labels-of-individual-points-in-boxplot/4576 "2017-06-22T15:58:14Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![kevin.dialdestoro](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/kevin.dialdestoro/32/1247_2.png) [@kevin.dialdestoro](https://community.plotly.com/u/kevin.dialdestoro)\
**Post date:** [June 22, 2017, 3:58pm UTC](https://community.plotly.com/t/labels-of-individual-points-in-boxplot/4576/1 "2017-06-22T15:58:14Z")

</div>

Hello there. Is there a way to add labels to individual points in boxplot? E.g. in scatterplot, I can specify a ‘text’ parameter, which will cause labels to appear when you hover over the points.

---

<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 26, 2017, 2:26pm UTC](https://community.plotly.com/t/labels-of-individual-points-in-boxplot/4576/2 "2017-06-26T14:26:14Z")

</div>

You can try using layout annotations. It’s a little tedious, but that’s all you can do at the moment.

---

<div class="post-metadata">

**Author:** ![johnarevalo](https://avatars.discourse-cdn.com/v4/letter/j/0ea827/32.png) [@johnarevalo](https://community.plotly.com/u/johnarevalo)\
**Post date:** [February 10, 2018, 5:41pm UTC](https://community.plotly.com/t/labels-of-individual-points-in-boxplot/4576/3 "2018-02-10T17:41:45Z")

</div>

I did it with:

```
py.iplot([go.Box(y=np.arange(10), name='mydata', 
                 boxpoints='all', text=list('abcdefghij'))])
```

---

<div class="post-metadata">

**Author:** ![philiplevn](https://avatars.discourse-cdn.com/v4/letter/p/858c86/32.png) [@philiplevn](https://community.plotly.com/u/philiplevn)\
**Post date:** [May 22, 2018, 11:58am UTC](https://community.plotly.com/t/labels-of-individual-points-in-boxplot/4576/4 "2018-05-22T11:58:06Z")

</div>

Thank you for the text input for hovering function.  
How can we add a different colour for a group of points in this plot box? Thanks

---

<div class="post-metadata">

**Author:** ![renanxcortes](https://avatars.discourse-cdn.com/v4/letter/r/22d042/32.png) [@renanxcortes](https://community.plotly.com/u/renanxcortes)\
**Post date:** [July 26, 2018, 10:49pm UTC](https://community.plotly.com/t/labels-of-individual-points-in-boxplot/4576/5 "2018-07-26T22:49:50Z")

</div>

Hello, is htis code, ok? I tried to run this but an error occurs, since ‘text’ is not an attribute for go.Box.

Is there a typo?

Best,  
Renan
