Comment on page
Stacked Row Chart
Learn to build and use stacked row charts in the Cohort Browser.
The Cohort Browser is accessible to all users of the UK Biobank Research Analysis Platform and the Our Future Health Trusted Research Environment.
Stacked row charts can be used to compare the distribution of values in a field containing categorical data, across different groups in a cohort. In a stacked row chart, each such group is defined by its member sharing the same value in another field that also contains categorical data.
When creating a stacked row chart, note that:
- Both the primary and secondary fields must contain categorical data
- Both the primary and secondary fields must contain no more than 20 distinct category values
Categorical multiple and categorical hierarchical data are not supported in stacked row charts.
In the stacked row chart below, the primary field is VisitType, while DoctorType is the secondary field. In this chart, a cohort has been broken down into two groups, with the first sharing the value "Out-patient" in the VisitType field, while the second shares the value "In-patient."
The size of each bar, and the number to its right, indicate the total number of records in each group. In the chart below, for example, we see that 3,179 records contain the value "Out-patient" in the VisitType field.
Each bar contains a color-coded section indicating how many of the group's records contain a specific value in the secondary field. Hovering over one of these sections reveals how many records, within a particular group, share a particular value in the secondary field. In the chart below, for example, we see that 87 records in the first group share the value "specialist" in the DoctorType field.
Stacked Row Chart: VisitType x DoctorType
- String Categorical
- String Categorical Sparse
- Integer Categorical