By default, the D3 line generator uses the linear curve mode; however, D3 supports a number of different curve factories. The curve function determines how data points will be connected, for example, by a straight line (linear) or a curved line (B-spline). In this recipe, we will show you how these curve modes can be set along with their effects.
Open your local copy of the following file in your web browser:
https://github.com/NickQiZhu/d3-cookbook-v2/blob/master/src/chapter7/line-curve.html
This recipe is built on top of what we did in the previous recipe, so if you are not
yet familiar with basic line generator functions, please refer to the previous recipe first
before proceeding.