# Hover data display

**URL:** <https://community.plotly.com/t/hover-data-display/48269>\
**Category:** 📊 Plotly Python\
**Created:** [December 16, 2020, 2:47pm UTC](https://community.plotly.com/t/hover-data-display/48269 "2020-12-16T14:47:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tati](https://avatars.discourse-cdn.com/v4/letter/t/3be4f8/32.png) [@tati](https://community.plotly.com/u/tati)\
**Post date:** [December 16, 2020, 2:47pm UTC](https://community.plotly.com/t/hover-data-display/48269/1 "2020-12-16T14:47:11Z")

</div>

hello to all,  
I have created the histogram below which gives the number of pub per day. In the black hover data I have the start and end day. Do you know how to display only the start day since it only concerns one day?

Her my code:

```
    fig.add_trace(go.Histogram(x=dff2['createdAt.$date'],
    marker_color = "#00e39b", 
    xbins=dict(start=start_date, end=end_date, size=size_), autobinx=False
    )) 

    fig.update_layout(
        title_text='Pub', 
        title_x = 0.5,  
        xaxis_title_text='date', 
        yaxis_title_text='number of pub', 
        bargap=0.05,  
        plot_bgcolor="#EBEDEF",
        hovermode="x", 
      )

```

 ![Capture d’écran 2020-12-16 à 15.49.54](https://us1.discourse-cdn.com/flex024/uploads/plot/original/2X/7/79d11628426134bc9933cdda9e1259a88fa65969.png)
