VOOZH about

URL: https://www.geeksforgeeks.org/javascript/d3-js-curvecatmullromclosed-method/

⇱ D3.js curveCatmullRomClosed() Method - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

D3.js curveCatmullRomClosed() Method

Last Updated : 23 Sep, 2020

The d3.curveCatmullRomClosed() interpolator produces a cubic CatMullRom spline. The curve is also based on these cubic CatMullRom splines. This is an open variant which combines the first and last point in the dataset with a curve.

Syntax:

d3.curveCatmullRomClosed()

Parameters: This method does not accept any parameters.

Return Value: This method does not return any value.

Example 1: 

Output:

👁 Image

Example 2:

Output:

👁 Image
Comment
Article Tags:
Article Tags: