-
Notifications
You must be signed in to change notification settings - Fork 446
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DataFilter intervals() and intervalstrings() for Activity and Trends …
…views intervals(symbol|name|start|stop|type|test|color|route|selected|date|filename [,start [,stop]]) returns a vector of values for the metric or field specified for each interval if no start/stop is supplied it uses the currently selected date range, or activity when no date range. intervalstring(symbol|name|start|stop|type|test|color|route|selected|date|filename [,start [,stop]]) same as intervals above but instead of returning a vector of numbers, the values are converted to strings as appropriate for the metric (e.g. Pace_Rowing mm:ss/500m). Both metricname and metricunit now support name, start, stop, type, test, color, route, selected, date, filename, in addition to metric names and date, to get corresponding localized string. Example program to build an intervals table in Activities displaying all intervals for selected activity, similar to the one in RideSummary: { names { metricname(name, Duration, Distance, Pace, xPace, Average_Heart_Rate ); } units { metricunit(name, Duration, Distance, Pace, xPace, Average_Heart_Rate ); } values { c( intervalstrings(name), intervalstrings(Duration), intervalstrings(Distance), intervalstrings(Pace), intervalstrings(xPace), intervalstrings(Average_Heart_Rate) ); } } Fixes #3626
- Loading branch information
1 parent
0f9b92f
commit 924da10
Showing
1 changed file
with
173 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters