Hi,
I am using pie graph. I want text to be displayed in rollover as part 1, part 2 and part 3 etc.
Implementing hoverinfo:“text” I am able to see desired text in rollover but same text is coming on the pie chart with percentage values.
Is it possible to display only percentage number on the pie chart and keep text in rollover?
var txt = [‘part 1’,‘part 2’,‘part 3’];
var data = [{
values: [19, 26, 55],
text: txt,
hoverinfo:“text”,
labels: [‘Residential’, ‘Non-Residential’, ‘Utility’],
type: ‘pie’
}];
Plotly.newPlot(‘myDiv’, data, {}, {showSendToCloud:true});