D3.js pie.endAngle() Function
The pie.endAngle() function in D3.js is used to set the end angle of the pie. When an angle is specified, it sets the end angle to the given angle or function and returns a pie generator. When the angle is not specified, it returns the current end angle accessor, which defaults to no end angle.
pie.endAngle( angle )
Parameters: This function accepts a single parameter as mentioned above and described below.
- angle: It is a number or function that specifies the end angle in radians. It is an optional parameter.
Return Values: This function does not return anything.
Below given are a few examples of pie.endAngle() function in D3.js;