VOOZH about

URL: https://www.geeksforgeeks.org/javascript/d3-js-ribbon-source-function/

⇱ D3.js ribbon.source() Function - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

D3.js ribbon.source() Function

Last Updated : 26 Aug, 2020

The ribbon.source() function in D3.js is used to set the source accessor to the specified function and returns this ribbon generator.

Syntax:

ribbon.source([source][/source]);

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

  • source: This parameter is the function to set the source accessor.

Return Value: This function returns the ribbon generator.

Below programs illustrate the ribbon.source() function in D3.js

Example 1:

Output:

👁 Image

Example 2:

Output:

👁 Image
Comment
Article Tags: