Show:
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

    <p><p>Collection of values coords used to generate control points.</p></p>

Returns:

<p><p>Array</p></p>

getCurveControlPoints

(
  • xcoords
  • ycoords
)
protected

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

Parameters:

  • xcoords Array

    <p><p>Collection of x-coordinates used for calculate the curves</p></p>

  • ycoords Array

    <p><p>Collection of y-coordinates used for calculate the curves</p></p>

Returns:

<p><p>Object</p></p>