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