Skip to content

Commit 67f6fd0

Browse files
committed
Update README
1 parent 01a3cd3 commit 67f6fd0

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

README.md

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -972,11 +972,11 @@ The following aggregation methods are supported:
972972
* *sum* - the sum of values
973973
* *proportion* - the sum proportional to the overall total (weighted frequency)
974974
* *proportion-facet* - the sum proportional to the facet total
975-
* *deviation* - the standard deviation
976975
* *min* - the minimum value
977976
* *max* - the maximum value
978977
* *mean* - the mean value (average)
979978
* *median* - the median value
979+
* *deviation* - the standard deviation
980980
* *variance* - the variance per [Welford’s algorithm](https://en.wikipedia.org/wiki/Algorithms_for_calculating_variance#Welford's_online_algorithm)
981981
* a function to be passed the array of values for each bin
982982
* an object with a *reduce* method
@@ -1079,11 +1079,11 @@ The following aggregation methods are supported:
10791079
* *sum* - the sum of values
10801080
* *proportion* - the sum proportional to the overall total (weighted frequency)
10811081
* *proportion-facet* - the sum proportional to the facet total
1082-
* *deviation* - the standard deviation
10831082
* *min* - the minimum value
10841083
* *max* - the maximum value
10851084
* *mean* - the mean value (average)
10861085
* *median* - the median value
1086+
* *deviation* - the standard deviation
10871087
* *variance* - the variance per [Welford’s algorithm](https://en.wikipedia.org/wiki/Algorithms_for_calculating_variance#Welford's_online_algorithm)
10881088
* a function - passed the array of values for each group
10891089
* an object with a *reduce* method - passed the index for each group, and all values
@@ -1164,12 +1164,12 @@ The Plot.windowX and Plot.windowY transforms compute a moving window around each
11641164

11651165
The following window reducers are supported:
11661166

1167-
* *deviation* - the standard deviation
11681167
* *min* - the minimum
11691168
* *max* - the maximum
11701169
* *mean* - the mean (average)
11711170
* *median* - the median
11721171
* *sum* - the sum of values
1172+
* *deviation* - the standard deviation
11731173
* *variance* - the variance per [Welford’s algorithm](https://en.wikipedia.org/wiki/Algorithms_for_calculating_variance#Welford's_online_algorithm)
11741174
* *difference* - the difference between the last and first window value
11751175
* *ratio* - the ratio of the last and first window value
@@ -1204,39 +1204,37 @@ Equivalent to Plot.map({y: *map*, y1: *map*, y2: *map*}, *options*), but ignores
12041204
Plot.normalizeX({y: "Date", x: "Close", stroke: "Symbol"})
12051205
```
12061206

1207-
Similar to [Plot.mapX](#plotmapxmap-options), but applies the normalize map method with the given *options*.
1207+
Like [Plot.mapX](#plotmapxmap-options), but applies the normalize map method with the given *options*.
12081208

12091209
#### Plot.normalizeY(*options*)
12101210

12111211
```js
12121212
Plot.normalizeY({x: "Date", y: "Close", stroke: "Symbol"})
12131213
```
12141214

1215-
Similar to [Plot.mapY](#plotmapymap-options), but applies the normalize map method with the given *options*.
1215+
Like [Plot.mapY](#plotmapymap-options), but applies the normalize map method with the given *options*.
12161216

12171217
#### Plot.windowX(*options*)
12181218

12191219
```js
12201220
Plot.windowX({y: "Date", x: "Anomaly", k: 24})
12211221
```
12221222

1223-
Similar to [Plot.mapX](#plotmapxmap-options), but applies the window map method with the given *options*.
1223+
Like [Plot.mapX](#plotmapxmap-options), but applies the window map method with the given *options*.
12241224

12251225
#### Plot.windowY(*options*)
12261226

12271227
```js
12281228
Plot.windowY({x: "Date", y: "Anomaly", k: 24})
12291229
```
12301230

1231-
Similar to [Plot.mapY](#plotmapymap-options), but applies the window map method with the given *options*.
1231+
Like [Plot.mapY](#plotmapymap-options), but applies the window map method with the given *options*.
12321232

12331233
### Select
12341234

12351235
[<img src="./img/select.png" width="320" height="198" alt="a line chart of several stocks">](https://observablehq.com/@data-workflows/plot-select)
12361236

1237-
[Source](./src/transforms/select.js) · [Examples](https://observablehq.com/@data-workflows/plot-select)
1238-
1239-
The select transforms extract one (or possibly several) data points from a series. They can be used to label a line, or annotate an extremal value. Series are defined by *facet* and *z* (or *fill* or *stroke*).
1237+
[Source](./src/transforms/select.js) · [Examples](https://observablehq.com/@data-workflows/plot-select) · Selects one (or possibly several) values from a series. The select transforms can be used to label a line or to annotate extreme values.
12401238

12411239
#### Plot.selectFirst(*options*)
12421240

0 commit comments

Comments
 (0)