#

API Docs for: 3.10.3
Show: Inherited Protected Private Deprecated

# 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`

()

Defined in `charts/js/Fills.js:9`

- Index
- Methods
- Properties

## Item Index

### Methods

- _getAreaDefaults
- _getClosingPoints
- _getCoordsByOrderAndIndex
- _getHighestValidOrder
- _getPath
- _getStackedClosingPoints
- _toggleVisible
- drawAreaSpline
- drawFill
- drawStackedAreaSpline

### Properties

- _defaults

## Methods

### `_getAreaDefaults`

() private

Defined in `charts/js/Fills.js:498`

Returns default values for area styles.

#### Returns:

Object

### `_getClosingPoints`

() protected

Defined in `charts/js/Fills.js:285`

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

#### Returns:

Array

### `_getCoordsByOrderAndIndex`

(

- `seriesCollection`
- `index`
- `order`
- `direction`

)
private

Defined in `charts/js/Fills.js:347`

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

Defined in `charts/js/Fills.js:321`

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

Defined in `charts/js/Fills.js:34`

Returns a path shape used for drawing fills.

#### Returns:

Path

### `_getStackedClosingPoints`

() protected

Defined in `charts/js/Fills.js:375`

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

#### Returns:

Array

### `_toggleVisible`

(

- `visible`

)
private

Defined in `charts/js/Fills.js:52`

Toggles visibility

#### Parameters:

- `visible` Boolean

  indicates visibilitye

### `drawAreaSpline`

() protected

Defined in `charts/js/Fills.js:129`

Draws a fill for a spline

### `drawFill`

(

- `xcoords`
- `ycoords`

)
protected

Defined in `charts/js/Fills.js:67`

Draws fill

#### Parameters:

- `xcoords` Array

  The x-coordinates for the series.

- `ycoords` Array

  The y-coordinates for the series.

### `drawStackedAreaSpline`

() protected

Defined in `charts/js/Fills.js:187`

Draws a a stacked area spline

## Properties

### `_defaults`

Object private

Defined in `charts/js/Fills.js:276`

Storage for default area styles.