From 2dddc843ce1aa85cb75ac57fddf7fc73ac10fd90 Mon Sep 17 00:00:00 2001 From: James Cole Date: Sun, 10 Apr 2016 10:20:15 +0200 Subject: [PATCH] Fix chart heights. --- public/js/global/charts.js | 3 +++ resources/views/accounts/show.twig | 2 +- resources/views/bills/show.twig | 2 +- resources/views/budgets/show.twig | 2 +- resources/views/categories/show.twig | 4 ++-- resources/views/categories/show_with_date.twig | 2 +- resources/views/index.twig | 10 +++++----- resources/views/piggy-banks/show.twig | 2 +- resources/views/reports/default/month.twig | 2 +- resources/views/reports/default/multi-year.twig | 12 ++++++------ resources/views/reports/default/year.twig | 12 ++++++------ 11 files changed, 28 insertions(+), 25 deletions(-) diff --git a/public/js/global/charts.js b/public/js/global/charts.js index 019313b736..7ba9e380e9 100644 --- a/public/js/global/charts.js +++ b/public/js/global/charts.js @@ -60,6 +60,9 @@ for (var i = 0; i < colourSet.length; i++) { Chart.defaults.global.legend.display = false; Chart.defaults.global.animation.duration = 0; +Chart.defaults.global.responsive = true; +Chart.defaults.global.maintainAspectRatio = false; + /* Set default options: */ diff --git a/resources/views/accounts/show.twig b/resources/views/accounts/show.twig index 7681de70fd..8e8fad0f5f 100644 --- a/resources/views/accounts/show.twig +++ b/resources/views/accounts/show.twig @@ -24,7 +24,7 @@
- +
diff --git a/resources/views/bills/show.twig b/resources/views/bills/show.twig index 379cd56fb8..20058d0b85 100644 --- a/resources/views/bills/show.twig +++ b/resources/views/bills/show.twig @@ -85,7 +85,7 @@

Chart

- +
diff --git a/resources/views/budgets/show.twig b/resources/views/budgets/show.twig index 94b758a70d..d58dc7f544 100644 --- a/resources/views/budgets/show.twig +++ b/resources/views/budgets/show.twig @@ -27,7 +27,7 @@
- +
diff --git a/resources/views/categories/show.twig b/resources/views/categories/show.twig index 737b6e7ab3..3c504b5b5b 100644 --- a/resources/views/categories/show.twig +++ b/resources/views/categories/show.twig @@ -12,7 +12,7 @@

{{ 'overview'|_ }} (month)

- +
@@ -22,7 +22,7 @@

{{ 'overview'|_ }} (all)

- +
diff --git a/resources/views/categories/show_with_date.twig b/resources/views/categories/show_with_date.twig index 640ae97797..60892dba50 100644 --- a/resources/views/categories/show_with_date.twig +++ b/resources/views/categories/show_with_date.twig @@ -13,7 +13,7 @@

{{ 'overview'|_ }} (period)

- +
diff --git a/resources/views/index.twig b/resources/views/index.twig index d404b724b7..c3bb48fa1e 100644 --- a/resources/views/index.twig +++ b/resources/views/index.twig @@ -22,7 +22,7 @@
- +
@@ -36,7 +36,7 @@
- +
@@ -49,7 +49,7 @@
- +
@@ -65,7 +65,7 @@
- +
@@ -116,7 +116,7 @@
- +
diff --git a/resources/views/piggy-banks/show.twig b/resources/views/piggy-banks/show.twig index c8754ce86a..75aa0d8963 100644 --- a/resources/views/piggy-banks/show.twig +++ b/resources/views/piggy-banks/show.twig @@ -12,7 +12,7 @@

{{ 'events'|_ }}

- +
diff --git a/resources/views/reports/default/month.twig b/resources/views/reports/default/month.twig index d449bfcba7..6b15db4071 100644 --- a/resources/views/reports/default/month.twig +++ b/resources/views/reports/default/month.twig @@ -13,7 +13,7 @@

{{ 'accountBalances'|_ }}

- +
diff --git a/resources/views/reports/default/multi-year.twig b/resources/views/reports/default/multi-year.twig index 91baf47404..0b668e2ddd 100644 --- a/resources/views/reports/default/multi-year.twig +++ b/resources/views/reports/default/multi-year.twig @@ -13,7 +13,7 @@

{{ 'incomeVsExpenses'|_ }}

- +
@@ -23,7 +23,7 @@

{{ 'incomeVsExpenses'|_ }}

- +
@@ -62,7 +62,7 @@

{{ 'Asset account'|_ }}: {{ account.name }}

- +
@@ -76,7 +76,7 @@

{{ 'net_worth'|_ }}

- +
@@ -94,7 +94,7 @@ - +
@@ -126,7 +126,7 @@ - +
diff --git a/resources/views/reports/default/year.twig b/resources/views/reports/default/year.twig index 4b34eb1229..d6b07d6043 100644 --- a/resources/views/reports/default/year.twig +++ b/resources/views/reports/default/year.twig @@ -13,7 +13,7 @@

{{ 'incomeVsExpenses'|_ }}

- +
@@ -23,7 +23,7 @@

{{ 'incomeVsExpenses'|_ }}

- +
@@ -55,7 +55,7 @@

{{ 'net_worth'|_ }}

- +
@@ -68,7 +68,7 @@

{{ 'categories_spent_in_year'|_ }}

- +
@@ -81,7 +81,7 @@

{{ 'categories_earned_in_year'|_ }}

- +
@@ -94,7 +94,7 @@

{{ 'budgets'|_ }}

- +