From 6839937445e0437cdb8d9abf809c33f7c6df5faa Mon Sep 17 00:00:00 2001 From: Natalie Hergesheimer Date: Tue, 12 Nov 2024 17:54:52 -0700 Subject: [PATCH] Final touches on analytics chart --- .../analytics-results.component.html | 19 ++++++++++++------- .../analytics-results.component.ts | 3 +++ .../src/assets/navigation/workflow-omni.xml | 2 +- 3 files changed, 16 insertions(+), 8 deletions(-) diff --git a/CSETWebNg/src/app/assessment/results/analytics-results/analytics-results.component.html b/CSETWebNg/src/app/assessment/results/analytics-results/analytics-results.component.html index 6a5435d01..02065c9f8 100644 --- a/CSETWebNg/src/app/assessment/results/analytics-results/analytics-results.component.html +++ b/CSETWebNg/src/app/assessment/results/analytics-results/analytics-results.component.html @@ -1,20 +1,25 @@
- +

Assessment Analytics

+

This chart displays the implementation scoring of the current assessment in relation to other assessments of the + same type. Each category is scored, with the minimum, maximum, and median scores charted to illustrate how the + current assessment compares to other assessments within the same sector or across all sectors

- -

Analytics

+

{{ dataType === 'mySector' ? sectorTitle : 'All Sectors' }}

- - My Sector: {{sectorTitle}} + + My Sector +
Sample Size: {{sampleSize}}
+
+ All Sectors +
Sample Size: {{sampleSize}}
- All Sectors
diff --git a/CSETWebNg/src/app/assessment/results/analytics-results/analytics-results.component.ts b/CSETWebNg/src/app/assessment/results/analytics-results/analytics-results.component.ts index e1d812d08..8701b96f6 100644 --- a/CSETWebNg/src/app/assessment/results/analytics-results/analytics-results.component.ts +++ b/CSETWebNg/src/app/assessment/results/analytics-results/analytics-results.component.ts @@ -41,6 +41,8 @@ export class AnalyticsResultsComponent implements OnInit { sectorsList: Sector[]; sectorTitle: string; showSector: boolean = true; + sampleSize: number; + allSectors: string = 'All Sectors'; @ViewChild('barCanvas') private barCanvas!: ElementRef; @@ -123,6 +125,7 @@ export class AnalyticsResultsComponent implements OnInit { this.maxData = result.max || []; this.currentUserData = result.barData?.values || []; this.labels = result.barData?.labels || []; + this.sampleSize = result.sampleSize; if (this.barChart) { this.updateChart(); } diff --git a/CSETWebNg/src/assets/navigation/workflow-omni.xml b/CSETWebNg/src/assets/navigation/workflow-omni.xml index c33e10a44..96ad676e2 100644 --- a/CSETWebNg/src/assets/navigation/workflow-omni.xml +++ b/CSETWebNg/src/assets/navigation/workflow-omni.xml @@ -401,7 +401,7 @@ - +