evidence-dev / evidence

Business intelligence as code: build fast, interactive data visualizations in pure SQL and markdown
https://evidence.dev
MIT License
3.68k stars 181 forks source link

DateRange options for Initial values #1772

Open benyn opened 3 months ago

benyn commented 3 months ago

Feature Description

DateRange component options for initial date values

Goal of Feature

This feature would enable us to set a reasonable initial/default date range for the report, not the entire range of dates available in the dataset.

Current Solution / Workarounds

AFAIK, there isn't a way to accomplish.

Alternatives

Tried setting the start and end options of the DateRange component, but those seem to limit the range of selectable dates.

justin0mcateer commented 2 months ago

It appears that the underlying control from bits-ui supports a parameter for the 'selectedRange', but it does not appear to be accessible currently.