# Hiding ID in hover box in px.choropleth\_mapbox

**URL:** <https://community.plotly.com/t/hiding-id-in-hover-box-in-px-choropleth-mapbox/47678>\
**Category:** 📊 Plotly Python\
**Created:** [November 29, 2020, 6:52pm UTC](https://community.plotly.com/t/hiding-id-in-hover-box-in-px-choropleth-mapbox/47678 "2020-11-29T18:52:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pololnger](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/pololnger/32/13674_2.png) [@Pololnger](https://community.plotly.com/u/Pololnger)\
**Post date:** [November 29, 2020, 6:52pm UTC](https://community.plotly.com/t/hiding-id-in-hover-box-in-px-choropleth-mapbox/47678/1 "2020-11-29T18:52:53Z")

</div>

Hello everyone, I have a px.choropleth\_mapbox that looks as follows:

```auto
fig = px.choropleth_mapbox(df, geojson=geo, locations='id', color='a', featureidkey="properties.cca_2",
                           hover_name = 'Location_Name', hover_data = ['a','b', 'c'],

```

What I want is to display the three items in hover\_data:

```auto
hover_data = ['a', 'b', 'c'] 

```

But in the hover boxes I always get:

```auto
'Location_Name'

'id'
'a'
'b'
'c'

```

It is the same id that is used to match the data with the geojson and specified in ` locations='id'`

How can I get rid off the `id `in my hover box? I noticed that it confuses my users more than it helps them with anything.

---

<div class="post-metadata">

**Author:** ![Alexboiboi](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/alexboiboi/32/6420_2.png) [@Alexboiboi](https://community.plotly.com/u/Alexboiboi)\
**Post date:** [November 29, 2020, 8:46pm UTC](https://community.plotly.com/t/hiding-id-in-hover-box-in-px-choropleth-mapbox/47678/2 "2020-11-29T20:46:55Z")

</div>

Hi @Pololnger,

try this:

```auto
fig = px.choropleth_mapbox(df, geojson=geo, locations='id', color='a', featureidkey="properties.cca_2",
                           hover_name = 'Location_Name', hover_data = {'a':True,'b':True, 'c':True, 'id':False}

```

it is written in the help:

```auto
hover_data: list of str or int, or Series or array-like, or dict
    Either a list of names of columns in `data_frame`, or pandas Series, or
    array_like objects or a dict with column names as keys, with values
    True (for default formatting) False (in order to remove this column**
    from hover information)**, or a formatting string, for example ':.3f' or
    '|%a' or list-like data to appear in the hover tooltip or tuples with a
    bool or formatting string as first element, and list-like data to
    appear in hover as second element Values from these columns appear as
    extra data in the hover tooltip.

```

hope this helps , Alex-
