Skip to content

Commit b47f59e

Browse files
committed
windows are in input order
1 parent 3ab2e19 commit b47f59e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/transforms/window.d.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,11 @@ export interface WindowOptions {
6565
* - *start* - as the first element in the window
6666
* - *middle* (default) - in the middle of the window, rounding down if **k** is even
6767
* - *end* - as the last element in the window
68+
*
69+
* Note that *start* and *end* are relative to input order, not natural
70+
* ascending order by value. For example, if the data is in reverse
71+
* chronological order, then the meaning of *start* and *end* is effectively
72+
* reversed because the first data point is the most recent.
6873
*/
6974
anchor?: "start" | "middle" | "end";
7075

0 commit comments

Comments
 (0)