cancel
Showing results for 
Search instead for 
Did you mean: 

Formatting Percentages in Pie Charts

Risa_Brown
7 - Data Storage
7 - Data Storage

Hello. 

How do you format the number of decimal points in a pie chart (widget) on my Periscope Dashboard? Within my chart, the chart displays percentages down to the thousandth place; which overwhelms my Evaluator. Any advice would be appreciated. 

2 REPLIES 2

Sijo1995
9 - Travel Pro
9 - Travel Pro

Hi @Risa_Brown ,

Please use this script

widget.on("ready", function (se, args){

$('.pie-percent-label').each(function(i, obj){var Valuetext=$(this).text();


var matches = Valuetext.match(/(\d+)/); if (matches) {



var newValue=parseFloat(Valuetext)
var value=newValue.toFixed(0);

$(this).text(value+'%');
}
})
});

Where should we add this I'm wondering? Thank you!