Relative start/end date for Fitness graph

The current graph allows you to specify a fixed, absolute start or end date by using the ?s and ?e parameters. Would it be possible to add relative date or timespan parameters, please? Currently, leaving out ?e shows the next 10 days from today, but one might like to plan 2 weeks, 1 month or more in advance.

Thanks

It actually stores the number of days in the past and the number of days in the future (can be negative) relative to todays date. I just fixed a bug (will deploy tm) that was breaking the future days part. So if you to go to /fitness with no query params it should keep the range.

Or are you linking to intervals.icu and really need relative params?

1 Like

For future readers:

In order to have the fitness graph remember the relative date:

  1. Pick an absolute date corresponding to the required number of days in the future.
  2. Remove the ā€œeā€ query parameter (e.g. https://intervals.icu/fitness?s=2020-10-30&e=2021-02-14)
  3. The graph will now remember the new relative end date.

Thanks, David. I am not linking to the site here, so this solution is fine.