From 88de55fda5bcccfc1527a19eaa4a245e17861255 Mon Sep 17 00:00:00 2001 From: Rico Sonntag Date: Wed, 6 Feb 2019 14:04:42 +0100 Subject: Update google charts --- .../views/modules/statistics-chart/custom.phtml | 14 ++--- .../modules/statistics-chart/individuals.phtml | 2 - .../views/modules/statistics-chart/other.phtml | 2 + .../views/modules/statistics-chart/page.phtml | 12 +++- .../views/statistics/families/total-records.phtml | 6 +- .../statistics/other/chart-distribution.phtml | 31 ---------- .../views/statistics/other/chart-google.phtml | 1 - resources/views/statistics/other/chart-setup.phtml | 26 +++++++++ .../views/statistics/other/charts/column.phtml | 52 +++++++++++++++++ .../views/statistics/other/charts/combo.phtml | 52 +++++++++++++++++ resources/views/statistics/other/charts/geo.phtml | 67 ++++++++++++++++++++++ resources/views/statistics/other/charts/pie.phtml | 44 ++++++++++++++ 12 files changed, 262 insertions(+), 47 deletions(-) delete mode 100644 resources/views/statistics/other/chart-distribution.phtml delete mode 100644 resources/views/statistics/other/chart-google.phtml create mode 100644 resources/views/statistics/other/chart-setup.phtml create mode 100644 resources/views/statistics/other/charts/column.phtml create mode 100644 resources/views/statistics/other/charts/combo.phtml create mode 100644 resources/views/statistics/other/charts/geo.phtml create mode 100644 resources/views/statistics/other/charts/pie.phtml (limited to 'resources/views') diff --git a/resources/views/modules/statistics-chart/custom.phtml b/resources/views/modules/statistics-chart/custom.phtml index 7fb3fe9369..df8bc61762 100644 --- a/resources/views/modules/statistics-chart/custom.phtml +++ b/resources/views/modules/statistics-chart/custom.phtml @@ -246,22 +246,22 @@ - - - - - - diff --git a/resources/views/modules/statistics-chart/individuals.phtml b/resources/views/modules/statistics-chart/individuals.phtml index 71b550881c..0585809dfb 100644 --- a/resources/views/modules/statistics-chart/individuals.phtml +++ b/resources/views/modules/statistics-chart/individuals.phtml @@ -1,5 +1,3 @@ - - diff --git a/resources/views/modules/statistics-chart/other.phtml b/resources/views/modules/statistics-chart/other.phtml index d20f54ed63..c681580a1b 100644 --- a/resources/views/modules/statistics-chart/other.phtml +++ b/resources/views/modules/statistics-chart/other.phtml @@ -1,4 +1,6 @@ diff --git a/resources/views/modules/statistics-chart/page.phtml b/resources/views/modules/statistics-chart/page.phtml index 7f8775b966..b27d3f31bb 100644 --- a/resources/views/modules/statistics-chart/page.phtml +++ b/resources/views/modules/statistics-chart/page.phtml @@ -1,4 +1,10 @@ - + + +

@@ -33,7 +39,7 @@ // If the URL contains a fragment, then activate the corresponding tab. // Use a prefix on the fragment, to prevent scrolling to the element. - var target = document.location.hash.replace("tab-", ""); + var target = window.location.hash.replace("tab-", ""); var tab = $("#statistics-tabs .nav-link[href='" + target + "']"); // If not, then activate the first tab. if (tab.length === 0) { @@ -43,7 +49,7 @@ // If the user selects a tab, update the URL to reflect this $('#statistics-tabs a[data-toggle="tab"]').on('shown.bs.tab', function (e) { - document.location.hash = "tab-" + e.target.href.substring(e.target.href.indexOf('#') + 1); + window.location.hash = "tab-" + e.target.href.substring(e.target.href.indexOf('#') + 1); }); diff --git a/resources/views/statistics/families/total-records.phtml b/resources/views/statistics/families/total-records.phtml index 522d6ae88f..69d23009d7 100644 --- a/resources/views/statistics/families/total-records.phtml +++ b/resources/views/statistics/families/total-records.phtml @@ -26,7 +26,7 @@ use Fisharebest\Webtrees\I18N;
-
+
@@ -39,7 +39,7 @@ use Fisharebest\Webtrees\I18N;
-
+
@@ -50,7 +50,7 @@ use Fisharebest\Webtrees\I18N;
-
+
diff --git a/resources/views/statistics/other/chart-distribution.phtml b/resources/views/statistics/other/chart-distribution.phtml deleted file mode 100644 index fe75a0e30f..0000000000 --- a/resources/views/statistics/other/chart-distribution.phtml +++ /dev/null @@ -1,31 +0,0 @@ - - -

- -

- -
-
-
-
-
-
- <?= $chart_title ?> -
- - - - - - -
-
-
-
-
-
-
diff --git a/resources/views/statistics/other/chart-google.phtml b/resources/views/statistics/other/chart-google.phtml deleted file mode 100644 index 5172f56d28..0000000000 --- a/resources/views/statistics/other/chart-google.phtml +++ /dev/null @@ -1 +0,0 @@ -<?= $chart_title ?> diff --git a/resources/views/statistics/other/chart-setup.phtml b/resources/views/statistics/other/chart-setup.phtml new file mode 100644 index 0000000000..694fc2da9e --- /dev/null +++ b/resources/views/statistics/other/chart-setup.phtml @@ -0,0 +1,26 @@ + + + + + + diff --git a/resources/views/statistics/other/charts/column.phtml b/resources/views/statistics/other/charts/column.phtml new file mode 100644 index 0000000000..b0ffd0d454 --- /dev/null +++ b/resources/views/statistics/other/charts/column.phtml @@ -0,0 +1,52 @@ + + + + +
+ + diff --git a/resources/views/statistics/other/charts/combo.phtml b/resources/views/statistics/other/charts/combo.phtml new file mode 100644 index 0000000000..dc0e8cbab2 --- /dev/null +++ b/resources/views/statistics/other/charts/combo.phtml @@ -0,0 +1,52 @@ + + + + +
+ + diff --git a/resources/views/statistics/other/charts/geo.phtml b/resources/views/statistics/other/charts/geo.phtml new file mode 100644 index 0000000000..c12a979f67 --- /dev/null +++ b/resources/views/statistics/other/charts/geo.phtml @@ -0,0 +1,67 @@ + + + + +

+ +

+ +
+
+
+
+
+
+
+
+
+
+
+
+
+ + diff --git a/resources/views/statistics/other/charts/pie.phtml b/resources/views/statistics/other/charts/pie.phtml new file mode 100644 index 0000000000..d463654899 --- /dev/null +++ b/resources/views/statistics/other/charts/pie.phtml @@ -0,0 +1,44 @@ + + + + +
+ + -- cgit v1.3