From afc2697818723c1d161362e47e5bae12daa3f8f2 Mon Sep 17 00:00:00 2001 From: tyger07 <6035184+tyger07@users.noreply.github.com> Date: Fri, 26 Mar 2021 17:38:37 -0700 Subject: [PATCH] Server Info Graph Fixes Improved server info graph image a bit. It now has a header explaining what the graph is, and y scaling on the graph is better and more accurately described. --- common/server/players-by-date.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/common/server/players-by-date.php b/common/server/players-by-date.php index 33b7a2b..89d7460 100644 --- a/common/server/players-by-date.php +++ b/common/server/players-by-date.php @@ -84,7 +84,8 @@ { imageline($base, $x_start, $day_average, $x_finish, $day_average, $orange); } - imagestring($base, 2, $x_start, $height + 15 + $top_offset, $date, $yellow); + imagestring($base, 2, $x_start + 10, $height + 15 + $top_offset, $date, $yellow); + imageline($base, $x_finish, $height + $top_offset, $x_finish, $height + 10 + $top_offset, $light); $last_average = $day_average; $loop_count++; } @@ -92,8 +93,9 @@ $middle = round(($y_max / 2), 0); imagestring($base, 2, 15, $height - ($middle * $y_division) + $top_offset, $middle, $yellow); imagestring($base, 2, 15, $height + $top_offset, "0", $yellow); - imageline($base, 40, $height + 10 + $top_offset, $width + 40, $height + 10 + $top_offset, $light); - imageline($base, 40, 10 + $top_offset, 40, $height + 10 + $top_offset, $light); + imageline($base, 40, $top_offset + 10, 50, $top_offset + 10, $light); + imageline($base, 40, $height + $top_offset, $width + 50, $height + $top_offset, $light); + imageline($base, 50, 10 + $top_offset, 50, $height + 10 + $top_offset, $light); imagestring($base, 4, 90, 15, 'Average Players per Day on Days with Server Acitivity', $light); } else