API Docs for: 3.8.0
Show:

CurveUtil Class

Module: charts-base
Parent Module: charts

Utility class used for calculating curve points.

Methods

getControlPoints

(
  • vals
)
private

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

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