Codebase list node-d3-shape / fdfff7b
Update README.md Readme clarification. nathanhack authored 5 years ago Mike Bostock committed 5 years ago
1 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
912912
913913 <a name="symbol_type" href="#symbol_type">#</a> <i>symbol</i>.<b>type</b>([<i>type</i>]) [<>](https://github.com/d3/d3-shape/blob/master/src/symbol.js#L33 "Source")
914914
915 If *type* is specified, sets the symbol type to the specified function or symbol type and returns this line generator. If *type* is not specified, returns the current symbol type accessor, which defaults to:
915 If *type* is specified, sets the symbol type to the specified function or symbol type and returns this line generator. When the *type* is a function it will receive the arguments passed into the symbol generator; if used with a selection then the function is evaluated for each selected element, in order, being passed the current datum (d), the current index (i), and the current group (nodes). If *type* is not specified, returns the current symbol type accessor, which defaults to:
916916
917917 ```js
918918 function type() {
924924
925925 <a name="symbol_size" href="#symbol_size">#</a> <i>symbol</i>.<b>size</b>([<i>size</i>]) [<>](https://github.com/d3/d3-shape/blob/master/src/symbol.js#L37 "Source")
926926
927 If *size* is specified, sets the size to the specified function or number and returns this symbol generator. If *size* is not specified, returns the current size accessor, which defaults to:
927 If *size* is specified, sets the size to the specified function or number and returns this symbol generator. When the *size* is a function it will receive the arguments passed into the symbol generator; if used with a selection then the function is evaluated for each selected element, in order, being passed the current datum (d), the current index (i), and the current group (nodes). If *size* is not specified, returns the current size accessor, which defaults to:
928928
929929 ```js
930930 function size() {