mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-22 20:16:22 +00:00
Account chart can display multiple currencies.
This commit is contained in:
@@ -42,7 +42,8 @@ var defaultChartOptions = {
|
||||
callbacks: {
|
||||
label: function (tooltipItem, data) {
|
||||
"use strict";
|
||||
return data.datasets[tooltipItem.datasetIndex].label + ': ' + accounting.formatMoney(tooltipItem.yLabel);
|
||||
return data.datasets[tooltipItem.datasetIndex].label + ': ' +
|
||||
accounting.formatMoney(tooltipItem.yLabel, data.datasets[tooltipItem.datasetIndex].currency_symbol);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -91,7 +91,7 @@ function doubleYChart(URI, container) {
|
||||
"use strict";
|
||||
|
||||
var colorData = true;
|
||||
var options = defaultChartOptions;
|
||||
var options = $.extend(true, {}, defaultChartOptions);
|
||||
options.scales.yAxes = [
|
||||
// y axis 0:
|
||||
{
|
||||
@@ -141,7 +141,7 @@ function doubleYNonStackedChart(URI, container) {
|
||||
"use strict";
|
||||
|
||||
var colorData = true;
|
||||
var options = defaultChartOptions;
|
||||
var options = $.extend(true, {}, defaultChartOptions);
|
||||
options.scales.yAxes = [
|
||||
// y axis 0:
|
||||
{
|
||||
|
Reference in New Issue
Block a user