feat: add Treatment Duration bar chart (Task 9.9)

This commit is contained in:
Andrew Charlwood
2026-02-06 20:12:01 +00:00
parent 1b134c46a2
commit 965fc8c3d2
3 changed files with 183 additions and 3 deletions
+3 -3
View File
@@ -431,12 +431,12 @@ Drawer selection → update_drug_selection → app-state store → load_pathway_
- **Checkpoint**: Heatmap tab renders matrix with correct colour mapping ✓
### 9.9 Treatment Duration chart (Tab 8)
- [ ] Create `dash_app/callbacks/duration.py`:
- [x] Create `dash_app/callbacks/duration.py`:
- Build horizontal bar chart from `get_treatment_durations()` data
- Y-axis = drug, X-axis = average days, colour intensity by patient count
- Directorate filter drives which drugs are shown
- [ ] Create figure function in `src/visualization/`
- [ ] Wire into tab switching
- [x] Create figure function in `src/visualization/`
- [x] Wire into tab switching
- **Checkpoint**: Duration tab renders real data, responds to directorate filter
### 9.10 Final integration + polish