Version 3.17.2
Show:

Fills Class

Defined in: charts/js/Fills.js:9
Module: series-fill-util
Parent Module: charts

Utility class used for drawing area fills.

Constructor

Fills

()

Methods

_getAreaDefaults

() private

Returns default values for area styles.

Returns:

Object

_getClosingPoints

() protected

Concatenates coordinate array with correct coordinates for closing an area fill.

Returns:

Array

_getCoordsByOrderAndIndex

(
  • seriesCollection
  • index
  • order
  • direction
)
private

Returns an array containing the x and y coordinates for a given series and index.

Parameters:

  • seriesCollection Array

    Array of series of a given type.

  • index Number

    Index of the series item.

  • order Number

    Index of the the series in the seriesCollection

  • direction String

    Indicates the direction of the series

Returns:

Array

_getHighestValidOrder

(
  • seriesCollection
  • index
  • order
  • direction
)
private

Returns the order of the series closest to the current series that has a valid value for the current index.

Parameters:

  • seriesCollection Array

    Array of series of a given type.

  • index Number

    Index of the series item.

  • order Number

    Index of the the series in the seriesCollection

  • direction String

    Indicates the direction of the series

Returns:

Number

_getPath

() private

Returns a path shape used for drawing fills.

Returns:

Path

_getStackedClosingPoints

() protected

Concatenates coordinate array with the correct coordinates for closing an area stack.

Returns:

Array

_toggleVisible

(
  • visible
)
private

Toggles visibility

Parameters:

  • visible Boolean

    indicates visibilitye

drawAreaSpline

() protected

Draws a fill for a spline

drawFill

(
  • xcoords
  • ycoords
)
protected

Draws fill

Parameters:

  • xcoords Array

    The x-coordinates for the series.

  • ycoords Array

    The y-coordinates for the series.

drawStackedAreaSpline

() protected

Draws a a stacked area spline

Properties

_defaults

Object private

Storage for default area styles.