From ed714294039a6ccc152d86df70fbc3e8a85581f7 Mon Sep 17 00:00:00 2001 From: markusbloch <> Date: Wed, 12 Jul 2017 20:05:52 +0000 Subject: [PATCH] statistics2: remove FHEM release chart, move "Last FHEM update" chart to first tab, extend "Last FHEM update" pie with installations >1year git-svn-id: https://svn.fhem.de/fhem/trunk@14695 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/contrib/statistics/2017/js/statistics.js | 5 ++--- fhem/contrib/statistics/2017/statistics.html | 9 +++------ fhem/contrib/statistics/2017/statistics2.cgi | 7 +++---- 3 files changed, 8 insertions(+), 13 deletions(-) diff --git a/fhem/contrib/statistics/2017/js/statistics.js b/fhem/contrib/statistics/2017/js/statistics.js index ee25dc2a2..ab0c57694 100644 --- a/fhem/contrib/statistics/2017/js/statistics.js +++ b/fhem/contrib/statistics/2017/js/statistics.js @@ -66,7 +66,7 @@ function drawGooglePieChart(data, el, subst, sort="byKey") { legend: {position: 'right',labeledValueText: 'both'}, pieSliceText: 'none', height: 350, - sliceVisibilityThreshold: 0.005 + sliceVisibilityThreshold: 0.004 }; var container = document.getElementById(id); @@ -329,12 +329,11 @@ function onSuccess(data, textStatus, jqXHR) { drawGoogleWorldMap(data.data.geo.countrycode,$("div#maptab-world")); // draw google pie charts - drawGooglePieChart(data.data.system.release, $("div#versiontab-FHEM")); drawGooglePieChart(data.data.system.os, $("div#versiontab-os"), {"linux":"Linux","MSWin32":"Windows","darwin":"MacOS"}, "byValue"); drawGooglePieChart(data.data.system.perl, $("div#versiontab-perl")); delete data.data.system.age.unknown; // don't display unknown update age systems - drawGooglePieChart(data.data.system.age, $("div#versiontab-update"), {"0":"≤ 1 day", "7": "1 day - 1 week", "30": "1 week - 1 month", "180": "1 month - 6 months", "365": "> 6 months"}, false); + drawGooglePieChart(data.data.system.age, $("div#versiontab-update"), {"0":"≤ 1 day", "7": "1 day - 1 week", "30": "1 week - 1 month", "180": "1 month - 6 months", "365": "6 months - 1 year", "999": "> 1 year"}, false); // create module table createModulTable(data.data.modules,data.data.models, $("table#module-table")); diff --git a/fhem/contrib/statistics/2017/statistics.html b/fhem/contrib/statistics/2017/statistics.html index 065494a8e..80eb4fdfe 100644 --- a/fhem/contrib/statistics/2017/statistics.html +++ b/fhem/contrib/statistics/2017/statistics.html @@ -51,22 +51,19 @@ -