From 89cd84e7506f652c973a97ecc4e7cd859938fa44 Mon Sep 17 00:00:00 2001 From: markusbloch <> Date: Sun, 2 Jul 2017 12:09:42 +0000 Subject: [PATCH] statistics2: center alignment of model counter values git-svn-id: https://svn.fhem.de/fhem/trunk@14624 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/contrib/statistics/2017/css/statistics.css | 4 ++++ fhem/contrib/statistics/2017/js/statistics.js | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/fhem/contrib/statistics/2017/css/statistics.css b/fhem/contrib/statistics/2017/css/statistics.css index 2ee792b13..313487b98 100644 --- a/fhem/contrib/statistics/2017/css/statistics.css +++ b/fhem/contrib/statistics/2017/css/statistics.css @@ -22,4 +22,8 @@ div#loading { background-position: center; background-repeat: no-repeat; background-attachment: fixed; +} + +td.modelValue { + text-align:center; } \ No newline at end of file diff --git a/fhem/contrib/statistics/2017/js/statistics.js b/fhem/contrib/statistics/2017/js/statistics.js index 2a8bf5bf8..61d24ab4c 100644 --- a/fhem/contrib/statistics/2017/js/statistics.js +++ b/fhem/contrib/statistics/2017/js/statistics.js @@ -55,7 +55,7 @@ function drawGooglePieChart(data, el) { var options = { is3D: true, chartArea : { height:'80%',width:'95%' }, - tooltip: { trigger: 'selection' }, + tooltip: { trigger: 'focus' }, width: 450, legend: {position: 'right'}, pieSliceText: 'none', @@ -287,10 +287,10 @@ function generateModelsOverview(moduleName, modelData) return a[0].toLowerCase().localeCompare(b[0].toLowerCase()); }); - str += '' + str += '
Model# of installations# of definitions
' var cl = "odd"; $.each(models, function(index, arr) { - str += '"; + str += '"; cl = (cl == "odd" ? "even" : "odd"); });
Model# of installations# of definitions
'+convertHtmlEntities(arr[0])+""+arr[1].installations+""+arr[1].definitions+"
'+convertHtmlEntities(arr[0])+''+arr[1].installations+''+arr[1].definitions+"