diff --git a/src/store/constant.js b/src/store/constant.js index 2e9c66f1..d4e79642 100644 --- a/src/store/constant.js +++ b/src/store/constant.js @@ -121,7 +121,7 @@ export const DataVisualizationChartInfo = { yAxis: 'Number of Patients' }, diagnosis_age_count: { - title: ' Age Range Distribution', + title: ' Age at Diagnosis Distribution', xAxis: 'Age Range', yAxis: 'Number of Patients' }, diff --git a/src/views/clinicalGenomic/widgets/patientCountSingle.js b/src/views/clinicalGenomic/widgets/patientCountSingle.js index 5cf46a5d..b5a420ce 100644 --- a/src/views/clinicalGenomic/widgets/patientCountSingle.js +++ b/src/views/clinicalGenomic/widgets/patientCountSingle.js @@ -57,7 +57,7 @@ function PatientCountSingle(props) { - {numCohorts} + {patientsInSearch} @@ -69,7 +69,7 @@ function PatientCountSingle(props) { - {patientsInSearch} + {numCohorts} @@ -106,13 +106,13 @@ function PatientCountSingle(props) { - {counts.totals[cohort]} + {counts.counts?.[cohort] || 0} - {counts.counts?.[cohort] || 0} + {counts.totals[cohort]} diff --git a/src/views/clinicalGenomic/widgets/patientCounts.js b/src/views/clinicalGenomic/widgets/patientCounts.js index e344578b..2f2481d9 100644 --- a/src/views/clinicalGenomic/widgets/patientCounts.js +++ b/src/views/clinicalGenomic/widgets/patientCounts.js @@ -76,7 +76,7 @@ function PatientCounts(props) { - Total Cohorts + Patients In Search @@ -86,7 +86,7 @@ function PatientCounts(props) { - Patients In Search + Total Cohorts