diff options
Diffstat (limited to 'tmpl/transactions_by_year.html')
-rw-r--r-- | tmpl/transactions_by_year.html | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/tmpl/transactions_by_year.html b/tmpl/transactions_by_year.html index b363c72..abe7e58 100644 --- a/tmpl/transactions_by_year.html +++ b/tmpl/transactions_by_year.html @@ -109,32 +109,32 @@ <script> - var barChartData = { - labels : ["[% transactions.by_year.$year.months.sort.join('","') %]"], - datasets : [ - { - fillColor : "#151f79", - strokeColor : "#101333", - data : [ - [%- FOR month IN transactions.by_year.$year.months.sort -%] - [%- transactions.by_month.$month.revenues -%] - [%- IF ! loop.last() -%],[%- END -%] - [%- END %]] - }, - { - fillColor : "#e51b1b", - strokeColor : "#f11111", - data: [ - [%- FOR month IN transactions.by_year.$year.months.sort -%] - [%- transactions.by_month.$month.expenses -%] - [%- IF ! loop.last() -%],[%- END -%] - [%- END %]] - } - ] - + var barChartData = { + labels : ["[% transactions.by_year.$year.months.sort.join('","') %]"], + datasets : [ + { + fillColor : "#151f79", + strokeColor : "#101333", + data : [ + [%- FOR month IN transactions.by_year.$year.months.sort -%] + [%- transactions.by_month.$month.revenues -%] + [%- IF ! loop.last() -%],[%- END -%] + [%- END %]] + }, + { + fillColor : "#e51b1b", + strokeColor : "#f11111", + data: [ + [%- FOR month IN transactions.by_year.$year.months.sort -%] + [%- transactions.by_month.$month.expenses -%] + [%- IF ! loop.last() -%],[%- END -%] + [%- END %]] } + ] + + } - var myLine = new Chart(document.getElementById("accounts_history_bar_chart").getContext("2d")).Bar(barChartData); + var myLine = new Chart(document.getElementById("accounts_history_bar_chart").getContext("2d")).Bar(barChartData); </script> |