Take a look at the full reference for the widget, it has a ‘textinfo’ option that you can add to the JSON that fills the chart
IIRC: you may need to have this in an non persitable entity which is read and converted to JSON
https://plotly.com/javascript/reference/pie/#pie-textinfo