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

Don't round values in chart tooltips

parent eb7c6a56
No related branches found
No related tags found
No related merge requests found
......@@ -375,7 +375,7 @@ function applyChartTooltips(dcjsChart, card, cols) {
.direction('n')
.offset([-10, 0])
.html(function(d) {
var values = valueFormatter(d.data.value);
var values = String(d.data.value);
if (card.display === 'pie') {
// TODO: this is not the ideal way to calculate the percentage, but it works for now
values += " (" + valueFormatter((d.endAngle - d.startAngle) / Math.PI * 50) + '%)'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment