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 918915db8..153f3f1ac 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,8 +1,7 @@ -
-

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

+
+

{{t('analytics.title')}}

+

{{t('analytics.description 1')}}

+

{{t('analytics.description 2')}}

@@ -13,12 +12,12 @@

Assessment Analytics

- My Sector -
Sample Size: {{sampleSize}}
+ matTooltip="Select a sector from Demographics in Assessment Information" [matTooltipDisabled]="showSector"> + {{t('analytics.my sector')}} +
{{t('analytics.sample size')}}: {{sampleSize}}
- All Sectors -
Sample Size: {{sampleSize}}
+ {{t('analytics.all sectors')}} +
{{t('analytics.sample size')}}: {{sampleSize}}
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 58ca34a42..860e4e0f9 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 @@ -7,6 +7,7 @@ import { AggregationService } from '../../../services/aggregation.service'; import { AssessmentDetail } from '../../../models/assessment-info.model'; import { DemographicService } from '../../../services/demographic.service'; import { DemographicIodService } from '../../../services/demographic-iod.service'; +import { TranslocoService } from '@jsverse/transloco'; Chart.register(...registerables); @@ -59,7 +60,8 @@ export class AnalyticsResultsComponent implements OnInit { public assessSvc: AssessmentService, public aggregSvc: AggregationService, public demoSvc: DemographicService, - public demoIodSvc: DemographicIodService + public demoIodSvc: DemographicIodService, + public tSvc: TranslocoService ) { } ngOnInit(): void { @@ -75,7 +77,7 @@ export class AnalyticsResultsComponent implements OnInit { this.demoIodSvc.getDemographics().subscribe((resp: DemographicsIod) => { resp.listSectors.forEach(sector => { if (sector.optionValue == this.sectorId) { - this.sectorTitle = sector.optionText + this.sectorTitle = this.tSvc.translate('analytics.' + sector.optionText) } }); }) diff --git a/CSETWebNg/src/assets/i18n/en.json b/CSETWebNg/src/assets/i18n/en.json index e30a4367b..2551493fe 100644 --- a/CSETWebNg/src/assets/i18n/en.json +++ b/CSETWebNg/src/assets/i18n/en.json @@ -1089,5 +1089,14 @@ "report title": "Multiple Assessment Comparison Report", "document library": "Document Library" } + }, + "analytics": { + "title": "Assessment Analytics", + "description 1": "This chart displays the implementation scoring of the current assessment in relation to other assessments of the same type, as applicable. Each category is scored, with the minimum, maximum, and median scores charted to illustrate how the current assessment compares to other assessments. Users can choose to view results within the same sector or across all sectors.", + "description 2": "If additional assessments of the same type have not been conducted, the chart will only display the current assessment results.", + "sample size": "Sample Size", + "tooltip": "Select a sector from Demographics in Assessment Information", + "my sector": "My Sector", + "all sectors": "All Sectors" } } \ No newline at end of file diff --git a/CSETWebNg/src/assets/i18n/es.json b/CSETWebNg/src/assets/i18n/es.json index ac866dfd9..6e288e80c 100644 --- a/CSETWebNg/src/assets/i18n/es.json +++ b/CSETWebNg/src/assets/i18n/es.json @@ -913,5 +913,14 @@ "report title": "Informe de Comparación de Múltiples Evaluaciones", "document library": "Biblioteca de documentos" } + }, + "analytics": { + "title": "Análisis de Evaluación", + "description 1": "Este gráfico muestra la puntuación de implementación de la evaluación actual en relación con otras evaluaciones del mismo tipo, según corresponda. Cada categoría se puntúa, con las puntuaciones mínima, máxima y mediana graficadas para ilustrar cómo se compara la evaluación actual con otras evaluaciones. Los usuarios pueden elegir ver los resultados dentro del mismo sector o en todos los sectores.", + "description 2": "Si no se han realizado evaluaciones adicionales del mismo tipo, el gráfico solo mostrará los resultados de la evaluación actual.", + "sample size": "Tamaño de Muestra", + "tooltip": "Seleccione un sector de Demografía en Información de Evaluación", + "my sector": "Mi Sector", + "all sectors": "Todos los Sectores" } } \ No newline at end of file diff --git a/CSETWebNg/src/assets/i18n/uk.json b/CSETWebNg/src/assets/i18n/uk.json index a7219023d..8a509dfff 100644 --- a/CSETWebNg/src/assets/i18n/uk.json +++ b/CSETWebNg/src/assets/i18n/uk.json @@ -921,5 +921,14 @@ "11c": "– Організація визначила повний набір необхідних заходів, необхідних для досягнення заявленого результату мети.", "11d": "– Організація не має найближчих планів реалізації рекомендованих дій для досягнення мети." } + }, + "analytics": { + "title": "Аналітика Оцінювання", + "description 1": "Ця діаграма відображає оцінку впровадження поточного оцінювання у порівнянні з іншими оцінюваннями того ж типу, якщо це застосовно. Кожна категорія оцінюється, з мінімальними, максимальними та медіанними оцінками, що показують, як поточне оцінювання порівнюється з іншими оцінюваннями. Користувачі можуть вибрати перегляд результатів у тому ж секторі або у всіх секторах.", + "description 2": "Якщо додаткові оцінювання того ж типу не проводились, діаграма відображатиме лише результати поточного оцінювання.", + "sample size": "Розмір Вибірки", + "tooltip": "Виберіть сектор з Демографії в Інформації про Оцінювання", + "my sector": "Мій Сектор", + "all sectors": "Усі Сектори" } } \ No newline at end of file