curve: String || Array
In line / area charts, whether to draw smooth lines or straight lines
Available Options
- straight: connect the points in straight lines.
- smooth: Uses the simplest smoothing function which produces flowing lines that are accurate
- monotoneCubic: Connects the points to create a monotone cubic spline.
- stepline: points are connected by horizontal and vertical line segments, looking like steps of a staircase.
- linestep: Another alternative version of stepline
You can also pass an array in
stroke.curve
, where each index corresponds to the series-index in multi-series charts.
stroke: {
curve: 'smooth',
// OR provide an array
curve: ['straight', 'smooth', 'monotoneCubic', 'stepline']
}