Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add relative date picker #146

Open
rclement opened this issue Aug 9, 2023 · 0 comments
Open

Add relative date picker #146

rclement opened this issue Aug 9, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@rclement
Copy link
Owner

rclement commented Aug 9, 2023

Context

  • It would be nice to set a default value for date-based filters such as "Last Month", automatically adjusting the dashboard given the current date
  • When exploring metrics on a dashboard, selecting canonical date ranges is tedious (current day/month/quarter/semester/year, past day/month/quarter/semester/year)

Technical details

  • Native HTML date input components are basic and do not let select relative dates
  • Datasette offers column filters arguments for queries
  • Date Range Picker is a JS component providing extensive options for relative and range based date filtering

References

Other BI tools are providing extensive date range filtering with relative dates.

For instance here is how Metabase currently displays it:
Screenshot 2023-08-09 at 11 08 38
Screenshot 2023-08-09 at 11 09 11
Screenshot 2023-08-09 at 11 09 20

@rclement rclement added the enhancement New feature or request label Aug 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant