Skip to content
Snippets Groups Projects
Commit b6b2f924 authored by Tom Robinson's avatar Tom Robinson
Browse files

Comment warning about weird way of computing percentages

parent 44d6b4c1
No related branches found
No related tags found
No related merge requests found
......@@ -379,6 +379,7 @@ function applyChartTooltips(dcjsChart, card, cols) {
}
var html = row(cols[0].name, d.data.key) + row(cols[1].name, valueFormatter(d.data.value));
if (card.display === 'pie') {
// TODO: this is not the ideal way to calculate the percentage, but it works for now
html += row('percentage', valueFormatter((d.endAngle - d.startAngle) / Math.PI * 50) + '%');
}
return html;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment