Make some charts currency aware for #740

This commit is contained in:
James Cole
2018-08-27 18:59:30 +02:00
parent 4fc13037d2
commit 0d82589916
21 changed files with 531 additions and 137 deletions

View File

@@ -129,4 +129,18 @@ var defaultPieOptions = {
},
maintainAspectRatio: true,
responsive: true
};
var neutralDefaultPieOptions = {
tooltips: {
callbacks: {
label: function (tooltipItem, data) {
"use strict";
var value = data.datasets[0].data[tooltipItem.index];
return data.labels[tooltipItem.index] + ': ' + accounting.formatMoney(value, '¤');
}
}
},
maintainAspectRatio: true,
responsive: true
};