# Curve
The CurveLayer allows you to add style to a curve type element.
API Reference
# Type
The CurveLayer is of the type curve.
# Example
let windSpeedLayerCurve = new CurveLayer({
dataSourceId: chartDataSource.id,
getValues: (rec, timeStamp) => {
return {
x: timeStamp,
y: rec.windSpeed
}
},
name: 'Wind Speed (m/s)'
});