CaCu: show screening rounds and restore category palettes
This commit is contained in:
@@ -98,8 +98,14 @@ export class ReadingsSection {
|
||||
const r = this.of().reading(mode.measure);
|
||||
const measure = this.of().measure(mode.measure);
|
||||
if (!measure || !r?.populations['initial-population']) return undefined;
|
||||
if (mode.figure === 'donut') return donut(measure, r);
|
||||
if (mode.figure === 'donut') return donut(measure, r, 'category', mode.colors);
|
||||
const categories = (mode.catalog ?? []).map((c) => ({ ...c, group: '' }));
|
||||
return scenarioBars(r, { groups: [], categories }, 'follow_up_status', name);
|
||||
return scenarioBars(
|
||||
r,
|
||||
{ groups: [], categories },
|
||||
mode.stratum ?? 'follow_up_status',
|
||||
name,
|
||||
mode.complete ? mode.order : undefined,
|
||||
);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user