Date range - maneeshpal/Drata GitHub Wiki

You can setup a date range for your chart, which will be used by Drata to filter out data that is not within the bounds of the range. Only properties of type 'date' can be used for specifying date range.

There are 2 date types of date range settings. 1. Static date range 2. Dynamic date range

You may set static or dynamic date for 'from' date and 'to' date.

Static date range

images/static_date_range.png

Static range is just the min and max date filter. It does not change over time since you will select a hardcoded date.

Dynamic date range

images/dynamic_date_range.png

With dynamic date selected, the date range will be calculated everytime the chart is loaded. This is useful for widgets that needs to display data over a certain period of sliding window.

An expression is dynamically generated based on the date interval you selected.