# Change font in name tag when hover over bar

**URL:** <https://community.plotly.com/t/change-font-in-name-tag-when-hover-over-bar/12111>\
**Category:** 📊 Plotly Python\
**Created:** [July 26, 2018, 4:44am UTC](https://community.plotly.com/t/change-font-in-name-tag-when-hover-over-bar/12111 "2018-07-26T04:44:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jchaykow](https://avatars.discourse-cdn.com/v4/letter/j/a8b319/32.png) [@Jchaykow](https://community.plotly.com/u/Jchaykow)\
**Post date:** [July 26, 2018, 4:44am UTC](https://community.plotly.com/t/change-font-in-name-tag-when-hover-over-bar/12111/1 "2018-07-26T04:44:55Z")

</div>

The little tag that occurs when you hover on a bar in a plotly barchart, like here: [https://plot.ly/create/?fid=jordanpeterson:380#/](https://plot.ly/create/?fid=jordanpeterson:380#/) the names read “Trace 0”, “Trace 1” etc…

It is controlled using the name = \_\_\_\_\_\_ tag.

I want to change the font color of these or change the font in general. Also, ideally I would like to control how many characters are allowed in there, because mine get cut off.

---

<div class="post-metadata">

**Author:** ![empet](https://avatars.discourse-cdn.com/v4/letter/e/977dab/32.png) [@empet](https://community.plotly.com/u/empet)\
**Post date:** [July 26, 2018, 7:11am UTC](https://community.plotly.com/t/change-font-in-name-tag-when-hover-over-bar/12111/2 "2018-07-26T07:11:13Z")

</div>

@Jchaykow

Update each trace with `hoverlabel`

```auto
hoverlabel=dict(bgcolor='set_your_preferred_background_color',
                font=dict(family='Balto', #or other font family
                          size=11, #or other size
                          color='font_color')
                             )

```

See also: [https://plot.ly/python/reference/#bar-hoverlabel](https://plot.ly/python/reference/#bar-hoverlabel).
