From b420ded943bd166dd88bb6faf433c5fd56c5bb22 Mon Sep 17 00:00:00 2001 From: JonatanRek Date: Wed, 9 Oct 2019 19:26:29 +0200 Subject: [PATCH] Ajax Refactor/Oprimalization #2 --- app/class/ChartManager.php | 41 ++++++++++++++++++++++++++++++++++++-- app/templates/js/post.js | 2 +- app/templates/js/script.js | 3 ++- 3 files changed, 42 insertions(+), 4 deletions(-) diff --git a/app/class/ChartManager.php b/app/class/ChartManager.php index f1d2c96..d26757c 100644 --- a/app/class/ChartManager.php +++ b/app/class/ChartManager.php @@ -6,8 +6,7 @@ class ChartScale{ const YEAR = 'error'; } class ChartManager{ - function generateChart($data, $min = 0, $max = 100) - { + function generateChart($data, $min = 0, $max = 100) { echo '
Aktuální Hodnota: '.$data[0]['value']; echo "