Stacked Row Chart

How to build and use Stacked Row Charts.

How to Build a Stacked Row Chart

A Stacked Row Chart can be built when combining two categorical fields. The same combination can also be visualized as a List View.

Dimension 1

Dimension 2

1x Categorical (categories <=20)

1x Categorical (categories <=20)

Categories in first dimension is shown as a row, while categories in second dimension is shown as color-coded segments within each row.

Note that Categorical Multiple and Categorical Hierarchical fields are not supported in stacked row charts.

Using Stacked Row Chart in the Cohort Browser

Below is an example stacked row chart: Coffee Type by Gender. From the second row we know there is a total of 42,761 patients in current cohort selection that drink instant coffee, among which 23,278 patients are female.

Stacked Row Chart: Coffee Type x Sex

Stacked row charts allows swapping the two categorical dimensions in their primary/secondary order. Below is an example combining the same fields Coffee Type and Gender, only this time Sex is used as the primary dimension.

Stacked Row Chart: Sex x Coffee Type

Stacked Row Chart is not supported in Cohort Compare. In compare mode, stacked row charts can be converted into List Views instead.

Note on Data Preparation

Ingestion Data Types supported as Stacked Row Charts:

  • String Categorical

  • String Categorical Sparse

  • Integer Categorical

While sparse serial type fields can be used to create a stacked row charts, non-encoded values are not supported by this chart type and therefore may not show up correctly in the chart.