Skip to content

Commit be2e466

Browse files
Filmbostock
andauthored
sort documentation: fix an outdated remark and a broken link (#1292)
Co-authored-by: Mike Bostock <[email protected]>
1 parent 228f62e commit be2e466

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1486,7 +1486,7 @@ The **stroke** defaults to none. The **fill** defaults to currentColor if the st
14861486
14871487
The built-in **symbol** types are: *circle*, *cross*, *diamond*, *square*, *star*, *triangle*, and *wye* (for fill) and *circle*, *plus*, *times*, *triangle2*, *asterisk*, *square2*, and *diamond2* (for stroke, based on [Heman Robinson’s research](https://www.tandfonline.com/doi/abs/10.1080/10618600.2019.1637746)). The *hexagon* symbol is also supported. You can also specify a D3 or custom symbol type as an object that implements the [*symbol*.draw(*context*, *size*)](https://github.com/d3/d3-shape/blob/main/README.md#custom-symbol-types) method.
14881488
1489-
Dots are drawn in input order, with the last data drawn on top. If sorting is needed, say to mitigate overplotting by drawing the smallest dots on top, consider a [sort and reverse transform](#transforms).
1489+
Dots are sorted by descending radius by default to mitigate overplotting; set the **sort** option to null to draw them in input order.
14901490
14911491
#### Plot.dot(*data*, *options*)
14921492
@@ -2275,7 +2275,7 @@ The *filter*, *sort* and *reverse* transforms are also available as functions, a
22752275
Plot.sort("body_mass_g", options) // show data in ascending body mass order
22762276
```
22772277
2278-
Sorts the data by the specified *order*, which can be an accessor function, a comparator function, or a channel value definition such as a field name. See also [index sorting](#index-sorting), which allows marks to be sorted by a named channel, such as *r* for radius.
2278+
Sorts the data by the specified *order*, which can be an accessor function, a comparator function, or a channel value definition such as a field name. See also [index sorting](#sort-options), which allows marks to be sorted by a named channel, such as *r* for radius.
22792279
22802280
<!-- jsdocEnd sort -->
22812281

0 commit comments

Comments
 (0)