# Histogram hovertext

**URL:** <https://community.plotly.com/t/histogram-hovertext/55485>\
**Category:** Dash Python\
**Created:** [August 11, 2021, 8:59pm UTC](https://community.plotly.com/t/histogram-hovertext/55485 "2021-08-11T20:59:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nrfd](https://avatars.discourse-cdn.com/v4/letter/n/3ec8ea/32.png) [@nrfd](https://community.plotly.com/u/nrfd)\
**Post date:** [August 11, 2021, 8:59pm UTC](https://community.plotly.com/t/histogram-hovertext/55485/1 "2021-08-11T20:59:22Z")

</div>

Hi there,

I am hoping someone can give me some help on this one - with hovertemplate, how do I reference the start/end of a bin, and the y value (when the y value is not an input).

```auto
                go.Histogram(
                    x=values,
                    name=group,
                    xbins=dict(
                        start=0,
                        end=maximum,
                        size=binsize,
                    ),
                    histnorm='percent',
                    bingroup=1,
                    opacity=0.2,
                    cumulative=dict(enabled=True,
                                    direction='decreasing'),
                ),

```

so on hover I want it to say “25-50, 15%”, which is equivalent of something like “{x\_start}-{x\_end}, {y:.0%}”

My problem is I don’t understand how to get x\_start and x\_end, and y doesn’t exist!

Many thanks
