aboutsummaryrefslogtreecommitdiffstats
path: root/tmpl/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'tmpl/index.html')
-rw-r--r--tmpl/index.html47
1 files changed, 23 insertions, 24 deletions
diff --git a/tmpl/index.html b/tmpl/index.html
index 2c3749f..c4d71bd 100644
--- a/tmpl/index.html
+++ b/tmpl/index.html
@@ -126,32 +126,31 @@
<script>
- var barChartData = {
- labels : ["[% transactions.by_year.keys.sort.reverse.join('","') %]"],
- datasets : [
- {
- fillColor : "#151f79",
- strokeColor : "#101333",
- data : [
- [%- FOR year IN transactions.by_year.keys.sort.reverse -%]
- [%- transactions.by_year.$year.revenues -%]
- [%- IF ! loop.last() -%],[%- END -%]
- [%- END %]]
- },
- {
- fillColor : "#e51b1b",
- strokeColor : "#f11111",
- data: [
- [%- FOR year IN transactions.by_year.keys.sort.reverse -%]
- [%- transactions.by_year.$year.expenses -%]
- [%- IF ! loop.last() -%],[%- END -%]
- [%- END %]]
- }
- ]
-
+ var barChartData = {
+ labels : ["[% transactions.by_year.keys.sort.reverse.join('","') %]"],
+ datasets : [
+ {
+ fillColor : "#151f79",
+ strokeColor : "#101333",
+ data : [
+ [%- FOR year IN transactions.by_year.keys.sort.reverse -%]
+ [%- transactions.by_year.$year.revenues -%]
+ [%- IF ! loop.last() -%],[%- END -%]
+ [%- END %]]
+ },
+ {
+ fillColor : "#e51b1b",
+ strokeColor : "#f11111",
+ data: [
+ [%- FOR year IN transactions.by_year.keys.sort.reverse -%]
+ [%- transactions.by_year.$year.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>