You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1146,7 +1146,7 @@ The following map methods are supported:
1146
1146
1147
1147
If a function is used, it must return an array of the same length as the given input. If a *map* method is used, it is repeatedly passed the index for each series (an array of integers), the corresponding input channel’s array of values, and the output channel’s array of values; it must populate the slots specified by the index in the output array.
1148
1148
1149
-
The Plot.normalizeX and Plot.normalizeY transforms normalize series values relative to the given basis. For example, if the series values are [*y₀*, *y₁*, *y₂*, …] and the *first* basis is used, the mapped series values would be [*y₀* / *y₀*, *y₁* / *y₀*, *y₂* / *y₀*, …] as in an index chart. The normalize transforms take an additional **basis** option which specifies how to normalize the series values. The following normalization methods are supported:
1149
+
The Plot.normalizeX and Plot.normalizeY transforms normalize series values relative to the given basis. For example, if the series values are [*y₀*, *y₁*, *y₂*, …] and the *first* basis is used, the mapped series values would be [*y₀* / *y₀*, *y₁* / *y₀*, *y₂* / *y₀*, …] as in an index chart. The **basis** option specifies how to normalize the series values. The following basis methods are supported:
1150
1150
1151
1151
**first* - the first value, as in an index chart; the default
1152
1152
**last* - the last value
@@ -1156,7 +1156,7 @@ The Plot.normalizeX and Plot.normalizeY transforms normalize series values relat
1156
1156
**extent* - the minimum is mapped to zero, and the maximum to one
1157
1157
* a function to be passed an array of values, returning the desired basis
1158
1158
1159
-
The Plot.windowX and Plot.windowY transforms compute a moving window around each data point and then derive a summary statistic from values in the current window. Most commonly, the window transforms are used to compute rolling averages (or rolling minimums or maximums). These transforms also take additional options:
1159
+
The Plot.windowX and Plot.windowY transforms compute a moving window around each data point and then derive a summary statistic from values in the current window, say to compute rolling averages, rolling minimums, or rolling maximums. These transforms also take additional options:
1160
1160
1161
1161
***k** - the window size (the number of elements in the window)
1162
1162
***shift** - how to align the window: *centered*, *leading*, or *trailing*
0 commit comments