VOOZH about

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

⇱ D3.js curveLinearClosed() Method - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

D3.js curveLinearClosed() Method

Last Updated : 26 Aug, 2020

The curveLinearClosed() interpolator creates multiple lines by choosing points that create straight lines between each pair of adjacent points in the dataset. This is a closed variant which adds a straight line between the first and last point in the dataset.

Syntax:

d3.curveLinearClosed()

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: