VOOZH about

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

⇱ D3.js curveBundle.beta() Method - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

D3.js curveBundle.beta() Method

Last Updated : 9 Sep, 2020

The bundle curve interpolators create straightened cubic basis splines. The degree to which the spline is straightened is determined by the interpolator’s beta value. A Valid betavalue range between 0 and 1. At the extremes, when the beta value is 1 the curve resembles the curve produced by d3.curveBasis, and when the beta is 0 the curve is a straight line between the first and last control points.

Syntax:

d3.curveBundle.beta(beta_value)

Parameters: 

  • beta_value: Beta value given for the curve ranging from [0,1]

Return Value: This method does not return any value.

Example 1: 

Output:

👁 Image

Example 2:

Output:

👁 Image
Comment
Article Tags:
Article Tags: