mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Fix pie chart.
This commit is contained in:
parent
32eeb3424d
commit
e893000ce9
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user