#

API Docs for: 3.10.3
Show: Inherited Protected Private Deprecated

# CurveUtil Class

Defined in: `charts/js/CurveUtil.js:7`
Module: series-curve-util
Parent Module: charts

Utility class used for calculating curve points.

## Constructor

### `CurveUtil`

()

Defined in `charts/js/CurveUtil.js:7`

- Index
- Methods

## Item Index

### Methods

- getControlPoints
- getCurveControlPoints

## Methods

### `getControlPoints`

(

- `vals`

)
private

Defined in `charts/js/CurveUtil.js:99`

Gets the control points for the curve.

#### Parameters:

- `vals` Array

  Collection of values coords used to generate control points.

#### Returns:

Array

### `getCurveControlPoints`

(

- `xcoords`
- `ycoords`

)
protected

Defined in `charts/js/CurveUtil.js:19`

Creates an array of start, end and control points for splines.

#### Parameters:

- `xcoords` Array

  Collection of x-coordinates used for calculate the curves

- `ycoords` Array

  Collection of y-coordinates used for calculate the curves

#### Returns:

Object