# Choropleth Location Text Not Displaying

**URL:** <https://community.plotly.com/t/choropleth-location-text-not-displaying/7180>\
**Category:** plotly.js\
**Created:** [December 6, 2017, 10:49am UTC](https://community.plotly.com/t/choropleth-location-text-not-displaying/7180 "2017-12-06T10:49:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rainbowunicorn161](https://avatars.discourse-cdn.com/v4/letter/r/f475e1/32.png) [@rainbowunicorn161](https://community.plotly.com/u/rainbowunicorn161)\
**Post date:** [December 6, 2017, 10:49am UTC](https://community.plotly.com/t/choropleth-location-text-not-displaying/7180/1 "2017-12-06T10:49:26Z")

</div>

I’m using arrays contained in a JSON object to plot my choropleth. For some reason, it displays “Trace 49” for the location text. How can I change this text to the full state name or remove it completely?

Here’s the graph:

 ![45 AM](https://us1.discourse-cdn.com/flex024/uploads/plot/original/2X/a/acd4ca5d0eefd5c3f5081bfbe3842a76c3d5bf46.jpg)

Here’s the code:

 ![20 AM](https://us1.discourse-cdn.com/flex024/uploads/plot/original/2X/4/499bb68168bd6ced9d64704a3d63e7bace2be2e3.jpg)

---

<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:** [December 6, 2017, 3:08pm UTC](https://community.plotly.com/t/choropleth-location-text-not-displaying/7180/2 "2017-12-06T15:08:14Z")

</div>

Simply set `hoverinfo: 'location+z+text'`

more info: [https://plot.ly/javascript/reference/#choropleth-hoverinfo](https://plot.ly/javascript/reference/#choropleth-hoverinfo)

---

<div class="post-metadata">

**Author:** ![rainbowunicorn161](https://avatars.discourse-cdn.com/v4/letter/r/f475e1/32.png) [@rainbowunicorn161](https://community.plotly.com/u/rainbowunicorn161)\
**Post date:** [December 28, 2017, 1:08am UTC](https://community.plotly.com/t/choropleth-location-text-not-displaying/7180/3 "2017-12-28T01:08:00Z")

</div>

The trace is still present in the graph in the transparent cell. Is it possible to remove it entirely and just display the hover info in the shaded area I showed in the first post?

---

<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:** [December 28, 2017, 1:57pm UTC](https://community.plotly.com/t/choropleth-location-text-not-displaying/7180/4 "2017-12-28T13:57:09Z")

</div>

Setting `opacity: 0` in the corresponding trace object should do the trick.
