From b235c914bd8939290bb1ffbca8d9a5bbeed92e79 Mon Sep 17 00:00:00 2001 From: frytimo Date: Mon, 27 Oct 2025 18:38:50 -0300 Subject: [PATCH] Add new line chart for active calls (#7598) * Row setting must be at least two --- .../resources/dashboard/active_calls.php | 107 +++++++++++++++--- .../resources/dashboard/config.php | 2 +- 2 files changed, 95 insertions(+), 14 deletions(-) diff --git a/app/active_calls/resources/dashboard/active_calls.php b/app/active_calls/resources/dashboard/active_calls.php index 374cffa2e5..5701888800 100644 --- a/app/active_calls/resources/dashboard/active_calls.php +++ b/app/active_calls/resources/dashboard/active_calls.php @@ -71,10 +71,18 @@ $row_style["1"] = "row_style1"; //icon and count echo "
\n"; echo "".escape($widget_label)."\n"; - echo "
\n"; - echo "\n"; - echo "0\n"; - echo "
\n"; + if ($widget_chart_type == 'line') { + echo "
\n"; + echo "\n"; + echo "\n"; + echo "
\n"; + } + if ($widget_chart_type == 'icon') { + echo "\n"; + echo "\n"; + echo "0\n"; + echo "\n"; + } echo "
\n"; //active call details @@ -100,19 +108,88 @@ $version = md5(file_get_contents($project_root . '/app/active_calls/resources/ja echo "\n"; ?> + + +