summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg Roach <greg@subaqua.co.uk>2022-02-05 09:21:54 +0000
committerGreg Roach <greg@subaqua.co.uk>2022-02-05 09:21:54 +0000
commit76e7c249722a8bc32771b8fa1ee4ce833a391f83 (patch)
tree73fdd6fbc6a805034508e20d553c396b396c69db
parent3a1e3ba4136c0d4abee219e17b75c9462a4868a7 (diff)
downloadwebtrees-76e7c249722a8bc32771b8fa1ee4ce833a391f83.tar.gz
webtrees-76e7c249722a8bc32771b8fa1ee4ce833a391f83.tar.bz2
webtrees-76e7c249722a8bc32771b8fa1ee4ce833a391f83.zip
Fix: #4205 - truncated text on h-axis of google charts
-rw-r--r--app/Statistics/Google/ChartAge.php4
-rw-r--r--app/Statistics/Google/ChartChildren.php4
-rw-r--r--app/Statistics/Google/ChartMarriageAge.php4
-rw-r--r--app/Statistics/Google/ChartNoChildrenFamilies.php4
4 files changed, 12 insertions, 4 deletions
diff --git a/app/Statistics/Google/ChartAge.php b/app/Statistics/Google/ChartAge.php
index a31815b076..74119ec68a 100644
--- a/app/Statistics/Google/ChartAge.php
+++ b/app/Statistics/Google/ChartAge.php
@@ -136,7 +136,9 @@ class ChartAge
'title' => I18N::translate('Age'),
],
'hAxis' => [
- 'title' => I18N::translate('Century'),
+ 'showTextEvery' => 1,
+ 'slantedText' => false,
+ 'title' => I18N::translate('Century'),
],
'colors' => [
'#84beff',
diff --git a/app/Statistics/Google/ChartChildren.php b/app/Statistics/Google/ChartChildren.php
index 1ab2141d35..0aa6830889 100644
--- a/app/Statistics/Google/ChartChildren.php
+++ b/app/Statistics/Google/ChartChildren.php
@@ -106,7 +106,9 @@ class ChartChildren
'title' => I18N::translate('Number of children'),
],
'hAxis' => [
- 'title' => I18N::translate('Century'),
+ 'showTextEvery' => 1,
+ 'slantedText' => false,
+ 'title' => I18N::translate('Century'),
],
'colors' => [
'#84beff'
diff --git a/app/Statistics/Google/ChartMarriageAge.php b/app/Statistics/Google/ChartMarriageAge.php
index 2eeb5fb8c2..6a54ea1220 100644
--- a/app/Statistics/Google/ChartMarriageAge.php
+++ b/app/Statistics/Google/ChartMarriageAge.php
@@ -159,7 +159,9 @@ class ChartMarriageAge
'title' => I18N::translate('Age'),
],
'hAxis' => [
- 'title' => I18N::translate('Century'),
+ 'showTextEvery' => 1,
+ 'slantedText' => false,
+ 'title' => I18N::translate('Century'),
],
'colors' => [
'#84beff',
diff --git a/app/Statistics/Google/ChartNoChildrenFamilies.php b/app/Statistics/Google/ChartNoChildrenFamilies.php
index ed79831fdf..1c244d9fd4 100644
--- a/app/Statistics/Google/ChartNoChildrenFamilies.php
+++ b/app/Statistics/Google/ChartNoChildrenFamilies.php
@@ -127,7 +127,9 @@ class ChartNoChildrenFamilies
'title' => I18N::translate('Total families'),
],
'hAxis' => [
- 'title' => I18N::translate('Century'),
+ 'showTextEvery' => 1,
+ 'slantedText' => false,
+ 'title' => I18N::translate('Century'),
],
'colors' => [
'#84beff'