From e893000ce96d225963ca25c0b708a40a6941a89a Mon Sep 17 00:00:00 2001 From: James Cole Date: Sun, 10 Apr 2016 20:28:32 +0200 Subject: [PATCH] Fix pie chart. --- public/js/ff/charts.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/public/js/ff/charts.js b/public/js/ff/charts.js index 71c2aa8037..7e30624236 100644 --- a/public/js/ff/charts.js +++ b/public/js/ff/charts.js @@ -103,7 +103,8 @@ var defaultPieOptions = { callbacks: { label: function (tooltipItem, data) { "use strict"; - return data.labels[tooltipItem.datasetIndex] + ': ' + accounting.formatMoney(tooltipItem.yLabel); + var value = data.datasets[0].data[tooltipItem.index]; + return data.labels[tooltipItem.index] + ': ' + accounting.formatMoney(value); } } }