From b70319673067f056f4d1c35caa1df6c9d61ed91f Mon Sep 17 00:00:00 2001 From: Ashraf-Khabar <95541956+Ashraf-Khabar@users.noreply.github.com> Date: Sun, 4 May 2025 16:52:55 +0200 Subject: [PATCH] Anlatics chart fixing : fixing the problem of other in distribution of tests --- ui/analytics/analytics_controller.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ui/analytics/analytics_controller.py b/ui/analytics/analytics_controller.py index 1264c80..ef5f435 100644 --- a/ui/analytics/analytics_controller.py +++ b/ui/analytics/analytics_controller.py @@ -129,7 +129,7 @@ def _update_test_status_distribution(self, data): total = data.get('total_tests', 0) passed = data.get('passed', 0) failed = data.get('failed', 0) - other = max(0, total - passed - failed) + # other = max(0, total - passed - failed) if total == 0: self._show_empty_chart(ax, "No test data available") @@ -137,10 +137,10 @@ def _update_test_status_distribution(self, data): return try: - sizes = [passed, failed, other] - labels = [f'Passed ({passed})', f'Failed ({failed})', f'Other ({other})'] - colors = ['#2ecc71', '#e74c3c', '#f39c12'] - explode = (0.05, 0.05, 0) + sizes = [passed, failed] + labels = [f'Passed ({passed})', f'Failed ({failed})'] + colors = ['#2ecc71', '#e74c3c'] + explode = (0.05, 0.05) wedges, _, _ = ax.pie( sizes, explode=explode, labels=labels, colors=colors,