Curve Enum

How the points of a line or an area are joined.

public enum Curve

Fields

NameValueDescription
Linear0Straight segments.
Step1Horizontal steps that change halfway between two points.
StepBefore2Horizontal steps that change at the start of each point.
StepAfter3Horizontal steps that change at the end of each point.
MonotoneX4A smooth curve that preserves the monotonicity of the data along x (Fritsch–Carlson), as d3's curveMonotoneX: it does not overshoot.
CatmullRom5A smooth centripetal Catmull–Rom spline (alpha 0.5) that passes through every point.