Gets the price history of the selected indices from the start
date, renders their closes normalized to 100, and serves them as a CSV
file named like compare-2026-11-07.csv, with the columns date,
label, close and index. The download waits until the selection
has not changed for 1.5 seconds, instead of starting on every click in the
picker.
Arguments
- id
Character. Module namespace id, must match the id used in
mod_compare_ui().- indices
Data frame of indices from
get_indices().- dark_mode
Reactive returning
"light"or"dark", the mode of the app.