Version 3.18.1
Show:

CurveUtil Class

Module: series-curve-util
Parent Module: charts

Utility class used for calculating curve points.

Constructor

CurveUtil

()

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