# Sunburst hover text: Build percent parent with hovertemplate

**URL:** <https://community.plotly.com/t/sunburst-hover-text-build-percent-parent-with-hovertemplate/52159>\
**Category:** 📊 Plotly Python\
**Created:** [April 19, 2021, 6:53pm UTC](https://community.plotly.com/t/sunburst-hover-text-build-percent-parent-with-hovertemplate/52159 "2021-04-19T18:53:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![AndPy](https://avatars.discourse-cdn.com/v4/letter/a/22d042/32.png) [@AndPy](https://community.plotly.com/u/AndPy)\
**Post date:** [April 19, 2021, 6:53pm UTC](https://community.plotly.com/t/sunburst-hover-text-build-percent-parent-with-hovertemplate/52159/1 "2021-04-19T18:53:32Z")

</div>

Hello Community,

my question relates to the figure go.Sunburst(): I am trying to re-create the functionality of `hoverinfo="percent parent"` with the function hovertemplate (reason: Translation of the word “of” to local languages).

I tried: `go.Sunburst(hovertemplate="%{percentParent:.2%} of %{parent}")` which works fine for all parts, except for the sunburst center. Instead of “100% of Total” the text "100% of " is displayed.

How can I completly re-create the functionality of `hoverinfo="percent parent"`?

Thank you in advance.
