From 0b3e28382013a35b6b057237b1bae81bd49b96fd Mon Sep 17 00:00:00 2001 From: Georgi Nikolov <gnnikolov87@gmail.com> Date: Tue, 18 Feb 2025 10:58:21 +0100 Subject: [PATCH] Updates to the dashboard for better representation of the line chart/donut chart of the evidences generated by the various agents --- resources/views/app/dashboard.blade.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/views/app/dashboard.blade.php b/resources/views/app/dashboard.blade.php index c79bca9..b178a8e 100644 --- a/resources/views/app/dashboard.blade.php +++ b/resources/views/app/dashboard.blade.php @@ -124,10 +124,10 @@ function(data) { console.log(data); //create the timeline evidences and sort them - var timeline_evidences = create_timeline_evidences(data).sort((a, b) => (a.time > b.time ? 1 : -1)); + var timeline_evidences = create_timeline_evidences(data, true).sort((a, b) => (a.time > b.time ? 1 : -1)); //create the donut evidences var donut_evidences = create_donut_evidences(timeline_evidences); - //console.log(timeline_evidences); + console.log(timeline_evidences); var svg_container = document.getElementById("timeline"); var info_container = document.getElementById("evidence-count-big"); -- GitLab