Fix pie chart.

This commit is contained in:
James Cole 2016-04-10 20:28:32 +02:00
parent 32eeb3424d
commit e893000ce9

View File

@ -103,7 +103,8 @@ var defaultPieOptions = {
callbacks: { callbacks: {
label: function (tooltipItem, data) { label: function (tooltipItem, data) {
"use strict"; "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);
} }
} }
} }