VOOZH about

URL: https://www.geeksforgeeks.org/javascript/d3-js-chord-padangle-function/

⇱ D3.js chord.padAngle() Function - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

D3.js chord.padAngle() Function

Last Updated : 19 Aug, 2020

The chord.padAngle() function in D3.js is used to set the pad angle between adjacent groups to the specified number in radians and returns the chord layout.

Syntax:

chord.padAngle([angle]);

Parameters: This function accepts a single parameter as mentioned above and described below

  • angle: This parameter is the angle to set the pad angle between adjacent groups.

Return Value: This function returns the chord layout.

Below programs illustrate the chord.padAngle() function in D3.js

Example 1:

Output:

👁 Image

Example 2:

Output:

👁 Image
Comment
Article Tags: