Skip to content

Commit

Permalink
Edit sentence to fix potential typo and for consistency (#3780)
Browse files Browse the repository at this point in the history
I believe that the word should have been "radians", not "radius". Instead of fixing this (potential) typo, however, maybe deleting this part of the sentence altogether is the better option? Deleting it makes the `arc.startAngle(angle)` description match the `arc.endAngle(angle)` description (which does not mention radius/radians in the corresponding sentence). Radians are addressed elsewhere, so mentioning them in the edited sentence is, perhaps, not necessary.
  • Loading branch information
sensologica committed Oct 30, 2023
1 parent 1c3a2eb commit 6e37f0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/d3-shape/arc.md
Expand Up @@ -168,7 +168,7 @@ The corner radius may not be larger than ([outerRadius](#arc_outerRadius) - [inn

## *arc*.startAngle(*angle*) {#arc_startAngle}

[Source](https://github.com/d3/d3-shape/blob/main/src/arc.js) · If *angle* is specified, sets the start angle to the specified function or number in radius and returns this arc generator.
[Source](https://github.com/d3/d3-shape/blob/main/src/arc.js) · If *angle* is specified, sets the start angle to the specified function or number and returns this arc generator.

```js
const arc = d3.arc().startAngle(Math.PI / 4);
Expand Down

0 comments on commit 6e37f0a

Please sign in to comment.