GRAPH
  /PARETO (CUM STACKED)=COUNT BY disease BY gender .
USE ALL.
COMPUTE filter_$=(gender = 1).
VARIABLE LABEL filter_$ 'gender = 1 (FILTER)'.
VALUE LABELS filter_$  0 'Not Selected' 1 'Selected'.
FORMAT filter_$ (f1.0).
FILTER BY filter_$.
EXECUTE .
GRAPH
  /PARETO (CUM SIMPLE)=COUNT BY disease .
