[API](/solutions/geotoolkit/geotoolkit_js/apis/readme) / [geotoolkit](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit) / [welllog](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit.welllog) / [data](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit.welllog#data) / [AccumulationCycleData](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit.welllog#accumulationcycledata) / AccumulationCycleData

# Class: AccumulationCycleData

[data](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit.welllog#data).[AccumulationCycleData](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit.welllog#accumulationcycledata).AccumulationCycleData

Define data for AccumulationCycle visual

**`Example`**

```ts
const data1 = new AccumulationCycleData('AccumulationCycle', depths, values);
const data2 = new AccumulationCycleData({
'depths': depths,
'values': values,
'name': 'AccumulationCycle'
});
```

## Hierarchy

- [`LogAbstractData`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.logabstractdata.logabstractdata)
↳ **`AccumulationCycleData`**


## Implements

- [`IStyleListener`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.attributes.iattributenode.istylelistener)


## Table of contents

Constructors
- [new AccumulationCycleData(name, depth, values, fillStyles, titles)](/solutions/geotoolkit/GeoToolkit_JS/apis/classes/geotoolkit.welllog.data-4.accumulationcycledata.accumulationcycledata.md#new accumulationcycledata(name, depth, values, fillstyles, titles))


Methods
| [addValue](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.accumulationcycledata.accumulationcycledata#addvalue) | [addValues](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.accumulationcycledata.accumulationcycledata#addvalues) | [calculateNeatLimits](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.accumulationcycledata.accumulationcycledata#calculateneatlimits) |
|  --- | --- | --- |
| [clear](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.accumulationcycledata.accumulationcycledata#clear) | [connectStyle](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.accumulationcycledata.accumulationcycledata#connectstyle) | [disconnectStyle](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.accumulationcycledata.accumulationcycledata#disconnectstyle) |
| [dispose](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.accumulationcycledata.accumulationcycledata#dispose) | [getClassName](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.accumulationcycledata.accumulationcycledata#getclassname) | [getColor](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.accumulationcycledata.accumulationcycledata#getcolor) |
| [getColors](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.accumulationcycledata.accumulationcycledata#getcolors) | [getDataOrder](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.accumulationcycledata.accumulationcycledata#getdataorder) | [getDepth](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.accumulationcycledata.accumulationcycledata#getdepth) |
| [getDepths](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.accumulationcycledata.accumulationcycledata#getdepths) | [getFillStyle](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.accumulationcycledata.accumulationcycledata#getfillstyle) | [getFillStyles](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.accumulationcycledata.accumulationcycledata#getfillstyles) |
| [getIndexAt](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.accumulationcycledata.accumulationcycledata#getindexat) | [getIndexUnit](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.accumulationcycledata.accumulationcycledata#getindexunit) | [getInvalidateMethod](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.accumulationcycledata.accumulationcycledata#getinvalidatemethod) |
| [getMaxDepth](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.accumulationcycledata.accumulationcycledata#getmaxdepth) | [getMaxMeaningDepth](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.accumulationcycledata.accumulationcycledata#getmaxmeaningdepth) | [getMaxValue](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.accumulationcycledata.accumulationcycledata#getmaxvalue) |
| [getMinDepth](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.accumulationcycledata.accumulationcycledata#getmindepth) | [getMinMeaningDepth](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.accumulationcycledata.accumulationcycledata#getminmeaningdepth) | [getMinValue](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.accumulationcycledata.accumulationcycledata#getminvalue) |
| [getName](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.accumulationcycledata.accumulationcycledata#getname) | [getNearestIndexAt](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.accumulationcycledata.accumulationcycledata#getnearestindexat) | [getProperties](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.accumulationcycledata.accumulationcycledata#getproperties) |
| [getSize](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.accumulationcycledata.accumulationcycledata#getsize) | [getState](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.accumulationcycledata.accumulationcycledata#getstate) | [getTimeStamp](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.accumulationcycledata.accumulationcycledata#gettimestamp) |
| [getTitle](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.accumulationcycledata.accumulationcycledata#gettitle) | [getTitles](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.accumulationcycledata.accumulationcycledata#gettitles) | [getValue](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.accumulationcycledata.accumulationcycledata#getvalue) |
| [getValueAt](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.accumulationcycledata.accumulationcycledata#getvalueat) | [getValueInRange](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.accumulationcycledata.accumulationcycledata#getvalueinrange) | [getValueUnit](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.accumulationcycledata.accumulationcycledata#getvalueunit) |
| [getValues](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.accumulationcycledata.accumulationcycledata#getvalues) | [hasEventListener](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.accumulationcycledata.accumulationcycledata#haseventlistener) | [isDisposed](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.accumulationcycledata.accumulationcycledata#isdisposed) |
| [isForwardOnly](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.accumulationcycledata.accumulationcycledata#isforwardonly) | [isSilent](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.accumulationcycledata.accumulationcycledata#issilent) | [mergeValue](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.accumulationcycledata.accumulationcycledata#mergevalue) |
| [mergeValues](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.accumulationcycledata.accumulationcycledata#mergevalues) | [notify](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.accumulationcycledata.accumulationcycledata#notify) | [off](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.accumulationcycledata.accumulationcycledata#off) |
| [on](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.accumulationcycledata.accumulationcycledata#on) | [parseFromString](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.accumulationcycledata.accumulationcycledata#parsefromstring) | [removeValues](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.accumulationcycledata.accumulationcycledata#removevalues) |
| [requestData](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.accumulationcycledata.accumulationcycledata#requestdata) | [resumeUpdate](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.accumulationcycledata.accumulationcycledata#resumeupdate) | [setColor](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.accumulationcycledata.accumulationcycledata#setcolor) |
| [setFillStyle](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.accumulationcycledata.accumulationcycledata#setfillstyle) | [setIndexUnit](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.accumulationcycledata.accumulationcycledata#setindexunit) | [setName](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.accumulationcycledata.accumulationcycledata#setname) |
| [setProperties](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.accumulationcycledata.accumulationcycledata#setproperties) | [setSilent](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.accumulationcycledata.accumulationcycledata#setsilent) | [setState](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.accumulationcycledata.accumulationcycledata#setstate) |
| [setTitles](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.accumulationcycledata.accumulationcycledata#settitles) | [setValue](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.accumulationcycledata.accumulationcycledata#setvalue) | [setValueUnit](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.accumulationcycledata.accumulationcycledata#setvalueunit) |
| [setValues](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.accumulationcycledata.accumulationcycledata#setvalues) | [suspendUpdate](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.accumulationcycledata.accumulationcycledata#suspendupdate) | [trimValues](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.accumulationcycledata.accumulationcycledata#trimvalues) |
| [update](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.accumulationcycledata.accumulationcycledata#update) | [updateDataStatistics](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.accumulationcycledata.accumulationcycledata#updatedatastatistics) | [updateTimeStamp](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.accumulationcycledata.accumulationcycledata#updatetimestamp) |
| [findValueAt](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.accumulationcycledata.accumulationcycledata#findvalueat) | [getClassName](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.accumulationcycledata.accumulationcycledata#getclassname-1) | [interpolateValueAt](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.accumulationcycledata.accumulationcycledata#interpolatevalueat) |


Css Properties
| Name  | Type  | Description |
|  --- | --- | --- |
| `name` | `string` | The log data name |


## Contents

Constructors
#### new AccumulationCycleData(name, depth, values, fillStyles, titles)

• **new AccumulationCycleData**(`name?`, `depth?`, `values?`, `fillStyles?`, `titles?`)

Constructor

#### Parameters

| Name  | Type  | Description  |
|  --- | --- | --- |
| `Optional` `name` | `string` | [`Options`](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit.welllog#accumulationcycledata#options) | data name, or object |
| `Optional` `depth` | `number`[] | array of depth values |
| `Optional` `values` | `number`[] | array of values |
| `Optional` `fillStyles` | [`Type`](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit.attributes#fillstyle#type)[] | array of colors |
| `Optional` `titles` | `string`[] | array of titles |


#### Overrides

LogAbstractData.constructor

Methods
#### addValue

▸ **addValue**(`depth`, `value`, `fillStyle`): `void`

Add values

#### Parameters

| Name  | Type  | Description  |
|  --- | --- | --- |
| `depth` | `number` | The depth for which you want to compute the value |
| `value` | `number` | value at the specified depth |
| `fillStyle` | [`Type`](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit.attributes#fillstyle#type) | fillstyle at the specified depth |


#### Returns

`void`

#### addValues

▸ **addValues**(`depths`, `values`, `fillStyles`): `void`

Add values at the bottom of the log

#### Parameters

| Name  | Type  | Description  |
|  --- | --- | --- |
| `depths` | `number`[] | The array of ordered depths |
| `values` | `number`[] | The array of values |
| `fillStyles` | [`Type`](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit.attributes#fillstyle#type)[] | The array of fill styles |


#### Returns

`void`

#### calculateNeatLimits

▸ **calculateNeatLimits**(`logScale`, `centerOnZeroOnNegativeMin`, `displayUnit`): `number`[]

Return an array of neat min and max

#### Parameters

| Name  | Type  | Description  |
|  --- | --- | --- |
| `logScale` | `boolean` | scale log scale |
| `centerOnZeroOnNegativeMin` | `boolean` | If negative and positive values, center around 0 |
| `displayUnit` | `string` | [`AbstractUnit`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.util.abstractunit.abstractunit) | displayed unit |


#### Returns

`number`[]

#### Overrides

[LogAbstractData](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.logabstractdata.logabstractdata).[calculateNeatLimits](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.logabstractdata.logabstractdata#calculateneatlimits)

#### clear

▸ **clear**(): [`AccumulationCycleData`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.accumulationcycledata.accumulationcycledata)

Clear log data. Removes all samples and reset depth limits

#### Returns

[`AccumulationCycleData`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.accumulationcycledata.accumulationcycledata)

#### Overrides

[LogAbstractData](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.logabstractdata.logabstractdata).[clear](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.logabstractdata.logabstractdata#clear)

#### connectStyle

▸ **connectStyle**(`style`, `type`, `callback`): [`AccumulationCycleData`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.accumulationcycledata.accumulationcycledata)

Connects style.<br>
<br>
This convenience method subscribes a listener to given style for the specified type.<br>
And automatically un-subscribes listener if node is disposed to prevent memory leaks

#### Parameters

| Name  | Type  | Description  |
|  --- | --- | --- |
| `style` | [`EventDispatcher`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.util.eventdispatcher.eventdispatcher) | connect style |
| `type` | `string` | type of event or property |
| `callback` | [`AttributeCallback`](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit.attributes#istylelistener#attributecallback)<[`EventDispatcher`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.util.eventdispatcher.eventdispatcher)&gt; | function to be called |


#### Returns

[`AccumulationCycleData`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.accumulationcycledata.accumulationcycledata)

this

#### Implementation of

[IStyleListener](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.attributes.iattributenode.istylelistener).[connectStyle](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.attributes.iattributenode.istylelistener#connectstyle)

#### disconnectStyle

▸ **disconnectStyle**(`style`, `type`, `callback`): [`AccumulationCycleData`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.accumulationcycledata.accumulationcycledata)

Disconnect style
<br>
This convenience method un-subscribes a listener to given style for the specified type.<br>

#### Parameters

| Name  | Type  | Description  |
|  --- | --- | --- |
| `style` | [`EventDispatcher`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.util.eventdispatcher.eventdispatcher) | connect style |
| `type` | `string` | type of event or property |
| `callback` | [`AttributeCallback`](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit.attributes#istylelistener#attributecallback)<[`EventDispatcher`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.util.eventdispatcher.eventdispatcher)&gt; | function to be called |


#### Returns

[`AccumulationCycleData`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.accumulationcycledata.accumulationcycledata)

this

#### Implementation of

[IStyleListener](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.attributes.iattributenode.istylelistener).[disconnectStyle](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.attributes.iattributenode.istylelistener#disconnectstyle)

#### dispose

▸ **dispose**(): `void`

Dispose.

#### Returns

`void`

#### Overrides

[LogAbstractData](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.logabstractdata.logabstractdata).[dispose](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.logabstractdata.logabstractdata#dispose)

#### getClassName

▸ **getClassName**(): `string`

#### Returns

`string`

#### Inherited from

[LogAbstractData](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.logabstractdata.logabstractdata).[getClassName](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.logabstractdata.logabstractdata#getclassname)

#### getColor

▸ **getColor**(`index`): `string`

Return color by index

**`Deprecated`**

since 4.1 Use getFillStyle instead

#### Parameters

| Name  | Type  | Description  |
|  --- | --- | --- |
| `index` | `number` | index of the sample in the array |


#### Returns

`string`

#### getColors

▸ **getColors**(): `string`[]

Return an array of colors

#### Returns

`string`[]

#### getDataOrder

▸ **getDataOrder**(): [`Order`](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit.util#order)

Return the order of the log data

#### Returns

[`Order`](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit.util#order)

#### Overrides

[LogAbstractData](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.logabstractdata.logabstractdata).[getDataOrder](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.logabstractdata.logabstractdata#getdataorder)

#### getDepth

▸ **getDepth**(`index`): `number`

Return depth by index

#### Parameters

| Name  | Type  | Description  |
|  --- | --- | --- |
| `index` | `number` | index at the depth |


#### Returns

`number`

#### Overrides

[LogAbstractData](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.logabstractdata.logabstractdata).[getDepth](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.logabstractdata.logabstractdata#getdepth)

#### getDepths

▸ **getDepths**(): `number`[]

Return an array of depths

#### Returns

`number`[]

#### Overrides

[LogAbstractData](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.logabstractdata.logabstractdata).[getDepths](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.logabstractdata.logabstractdata#getdepths)

#### getFillStyle

▸ **getFillStyle**(`index`): [`FillStyle`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.attributes.fillstyle.fillstyle)

Return color by index

#### Parameters

| Name  | Type  | Description  |
|  --- | --- | --- |
| `index` | `number` | index of the sample in the array |


#### Returns

[`FillStyle`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.attributes.fillstyle.fillstyle)

#### getFillStyles

▸ **getFillStyles**(): [`FillStyle`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.attributes.fillstyle.fillstyle)[]

Return an array of fill styles

#### Returns

[`FillStyle`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.attributes.fillstyle.fillstyle)[]

#### getIndexAt

▸ **getIndexAt**(`depth`, `fromIndex?`, `toIndex?`): `number`

Return index for specified depth

#### Parameters

| Name  | Type  | Description  |
|  --- | --- | --- |
| `depth` | `number` | The depth for which you want to compute the index |
| `Optional` `fromIndex` | `number` | index of sample in depths |
| `Optional` `toIndex` | `number` | index of sample in depths |


#### Returns

`number`

#### Inherited from

[LogAbstractData](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.logabstractdata.logabstractdata).[getIndexAt](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.logabstractdata.logabstractdata#getindexat)

#### getIndexUnit

▸ **getIndexUnit**(): [`AbstractUnit`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.util.abstractunit.abstractunit)

Return the value unit

**`Throws`**

when this method is not implemented

#### Returns

[`AbstractUnit`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.util.abstractunit.abstractunit)

#### Overrides

[LogAbstractData](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.logabstractdata.logabstractdata).[getIndexUnit](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.logabstractdata.logabstractdata#getindexunit)

#### getInvalidateMethod

▸ **getInvalidateMethod**(): [`AttributeCallback`](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit.attributes#istylelistener#attributecallback)<[`EventDispatcher`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.util.eventdispatcher.eventdispatcher)&gt;

invalidate Method

#### Returns

[`AttributeCallback`](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit.attributes#istylelistener#attributecallback)<[`EventDispatcher`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.util.eventdispatcher.eventdispatcher)&gt;

method to invalidate this object

#### getMaxDepth

▸ **getMaxDepth**(): `number`

Return maximum depth

#### Returns

`number`

#### Overrides

[LogAbstractData](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.logabstractdata.logabstractdata).[getMaxDepth](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.logabstractdata.logabstractdata#getmaxdepth)

#### getMaxMeaningDepth

▸ **getMaxMeaningDepth**(): `number`

Return maximum Meaning depth (last depth with value)

#### Returns

`number`

#### Overrides

[LogAbstractData](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.logabstractdata.logabstractdata).[getMaxMeaningDepth](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.logabstractdata.logabstractdata#getmaxmeaningdepth)

#### getMaxValue

▸ **getMaxValue**(): `number`

Return maximum data value

#### Returns

`number`

#### Overrides

[LogAbstractData](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.logabstractdata.logabstractdata).[getMaxValue](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.logabstractdata.logabstractdata#getmaxvalue)

#### getMinDepth

▸ **getMinDepth**(): `number`

Return minimum depth

#### Returns

`number`

#### Overrides

[LogAbstractData](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.logabstractdata.logabstractdata).[getMinDepth](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.logabstractdata.logabstractdata#getmindepth)

#### getMinMeaningDepth

▸ **getMinMeaningDepth**(): `number`

Return minimum Meaning depth (first depth with value)

#### Returns

`number`

#### Overrides

[LogAbstractData](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.logabstractdata.logabstractdata).[getMinMeaningDepth](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.logabstractdata.logabstractdata#getminmeaningdepth)

#### getMinValue

▸ **getMinValue**(): `number`

Return minimum data value

#### Returns

`number`

#### Overrides

[LogAbstractData](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.logabstractdata.logabstractdata).[getMinValue](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.logabstractdata.logabstractdata#getminvalue)

#### getName

▸ **getName**(): `string`

Return name of the data

#### Returns

`string`

#### Overrides

[LogAbstractData](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.logabstractdata.logabstractdata).[getName](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.logabstractdata.logabstractdata#getname)

#### getNearestIndexAt

▸ **getNearestIndexAt**(`depth`, `fromIndex?`, `toIndex?`): `number`

Return nearest index for specified depth

#### Parameters

| Name  | Type  | Description  |
|  --- | --- | --- |
| `depth` | `number` | The depth for which you want to compute the index |
| `Optional` `fromIndex` | `number` | index of sample in depths |
| `Optional` `toIndex` | `number` | index of sample in depths |


#### Returns

`number`

#### Inherited from

[LogAbstractData](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.logabstractdata.logabstractdata).[getNearestIndexAt](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.logabstractdata.logabstractdata#getnearestindexat)

#### getProperties

▸ **getProperties**(): [`OptionsOut`](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit.welllog#accumulationcycledata#optionsout)

Gets all the properties pertaining to this object

#### Returns

[`OptionsOut`](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit.welllog#accumulationcycledata#optionsout)

properties object

#### getSize

▸ **getSize**(): `number`

Return a count of the samples

#### Returns

`number`

#### Overrides

[LogAbstractData](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.logabstractdata.logabstractdata).[getSize](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.logabstractdata.logabstractdata#getsize)

#### getState

▸ **getState**(): [`LogDataState`](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit.welllog#logdatastate)

Return state

#### Returns

[`LogDataState`](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit.welllog#logdatastate)

#### Inherited from

[LogAbstractData](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.logabstractdata.logabstractdata).[getState](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.logabstractdata.logabstractdata#getstate)

#### getTimeStamp

▸ **getTimeStamp**(): `number`

Return the value to indicate if data source was changed

#### Returns

`number`

#### Inherited from

[LogAbstractData](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.logabstractdata.logabstractdata).[getTimeStamp](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.logabstractdata.logabstractdata#gettimestamp)

#### getTitle

▸ **getTitle**(`index`): `string`

Return title by index

#### Parameters

| Name  | Type  | Description  |
|  --- | --- | --- |
| `index` | `number` | index at the depth |


#### Returns

`string`

#### getTitles

▸ **getTitles**(): `string`[]

Return titles of the data

#### Returns

`string`[]

#### getValue

▸ **getValue**(`index`): `number`

Return value by index

#### Parameters

| Name  | Type  | Description  |
|  --- | --- | --- |
| `index` | `number` | index of the sample in the array |


#### Returns

`number`

#### Overrides

[LogAbstractData](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.logabstractdata.logabstractdata).[getValue](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.logabstractdata.logabstractdata#getvalue)

#### getValueAt

▸ **getValueAt**(`depth`, `fromIndex?`, `toIndex?`, `interpolation?`, `interpolationMode?`): `number`

Return the value matching the given depth or NaN if the given depth is out of the logdata depth range.

If the depths are strictly increasing:

- The returned value will be interpolated when necessary. See example 1


If the depths are not strictly increasing but never decreasing:

- The value returned will be the first one found (in the insertion order). See example 2
- The value returned will be interpolated between the last one found and its closest larger neighbor. See example 2


If the depths are not always increasing (not forward only):

- The value returned will be the last one found (in the insertion order). See example 3
- The value returned will be interpolated between the first one found and its closest larger neighbor. See example 3


Examples assume the default linear interpolation

**`Example`**

```ts
// Depth Value
// 0      0
// 100    1
// 200    2

getValueAt(100) // -&gt; 1
getValueAt(150) // -&gt; 1.5
```

**`Example`**

```ts
// Depth Value
// 0      0
// 100    1
// 100    2
// 200    3

getValueAt(100) // -&gt; 1
getValueAt(150) // -&gt; 2.5
```

**`Example`**

```ts
// Depth Value
// 0      0
// 100    1
// 200    2
// 100    3

getValueAt(100) // -&gt; 3
getValueAt(150) // -&gt; 1.5
```

#### Parameters

| Name  | Type  | Description  |
|  --- | --- | --- |
| `depth` | `number` | The depth for which you want to compute the value |
| `Optional` `fromIndex` | `number` | index of sample in depths |
| `Optional` `toIndex` | `number` | index of sample in depths |
| `Optional` `interpolation` | [`InterpolationType`](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit.data#interpolationtype) | interpolation type for the value |
| `Optional` `interpolationMode` | [`InterpolationMode`](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit.data#interpolationmode) | interpolation mode for the value |


#### Returns

`number`

The interpolated value or Number.NaN if outside the range

#### Inherited from

[LogAbstractData](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.logabstractdata.logabstractdata).[getValueAt](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.logabstractdata.logabstractdata#getvalueat)

#### getValueInRange

▸ **getValueInRange**(`depth`, `prev`, `next`): `number`

Return value by depth, using linear interpolation if necessary.

See LogAbstractData.findValueAt.

#### Parameters

| Name  | Type  | Description  |
|  --- | --- | --- |
| `depth` | `number` | The depth for which you want to compute the value |
| `prev` | `number` | The index of the largest previous depth |
| `next` | `number` | The index of the smallest following depth |


#### Returns

`number`

#### Overrides

[LogAbstractData](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.logabstractdata.logabstractdata).[getValueInRange](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.logabstractdata.logabstractdata#getvalueinrange)

#### getValueUnit

▸ **getValueUnit**(): [`AbstractUnit`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.util.abstractunit.abstractunit)

Return the depth unit

**`Throws`**

when this method is not implemented

#### Returns

[`AbstractUnit`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.util.abstractunit.abstractunit)

#### Overrides

[LogAbstractData](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.logabstractdata.logabstractdata).[getValueUnit](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.logabstractdata.logabstractdata#getvalueunit)

#### getValues

▸ **getValues**(): `number`[]

Return values

#### Returns

`number`[]

#### Overrides

[LogAbstractData](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.logabstractdata.logabstractdata).[getValues](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.logabstractdata.logabstractdata#getvalues)

#### hasEventListener

▸ **hasEventListener**(`type`, `callback?`): `boolean`

Check if a list of event listeners for this type contains this listener

#### Parameters

| Name  | Type  | Description  |
|  --- | --- | --- |
| `type` | `string` | type of event or property |
| `Optional` `callback` | `Function` | to be called, if null, check if any callback is registered |


#### Returns

`boolean`

#### Inherited from

[LogAbstractData](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.logabstractdata.logabstractdata).[hasEventListener](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.logabstractdata.logabstractdata#haseventlistener)

#### isDisposed

▸ **isDisposed**(): `boolean`

Returns whether this object has been disposed

#### Returns

`boolean`

#### Inherited from

[LogAbstractData](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.logabstractdata.logabstractdata).[isDisposed](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.logabstractdata.logabstractdata#isdisposed)

#### isForwardOnly

▸ **isForwardOnly**(): `boolean`

Return true if data is in ascending order

#### Returns

`boolean`

#### Overrides

[LogAbstractData](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.logabstractdata.logabstractdata).[isForwardOnly](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.logabstractdata.logabstractdata#isforwardonly)

#### isSilent

▸ **isSilent**(): `boolean`

Return true if the event dispatcher doesn't notify any events

#### Returns

`boolean`

#### Inherited from

[LogAbstractData](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.logabstractdata.logabstractdata).[isSilent](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.logabstractdata.logabstractdata#issilent)

#### mergeValue

▸ **mergeValue**(`depth`, `value`, `color`): `void`

Insert/Replace the given value at the correct place in the log.
This function works ONLY if the existing data is ordered.

**`Example`**

```ts
Depth       Value
100          0
200          1

mergeValue(150,3)

Depth       Value
100          0
150          3
200          1
```

#### Parameters

| Name  | Type  | Description  |
|  --- | --- | --- |
| `depth` | `number` | The depth for which you want to compute the value |
| `value` | `number` | value at the depth |
| `color` | `string` | color at the depth |


#### Returns

`void`

#### mergeValues

▸ **mergeValues**(`depths`, `values`, `fillStyles`): `void`

Inserts/Replace the given values at the correct place in the log.
This function works ONLY if the existing data is ordered.

**`Example`**

```ts
Depth       Value
50           0
100          1
200          2
300          3

mergeValue(&#91;0,100,150,500&#93;, &#91;-1,-100,-150,-500&#93;)

----     Depth       Value
===&gt;       0           -1
----      50            0
===&gt;      100         -100
===&gt;      150         -150
----      200           2
----      300           3
===&gt;      500         -500
```

#### Parameters

| Name  | Type  | Description  |
|  --- | --- | --- |
| `depths` | `number`[] | the place where to merge in the log |
| `values` | `number`[] | the values to merge |
| `fillStyles` | [`Type`](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit.attributes#fillstyle#type)[] | the fill styles to merge |


#### Returns

`void`

#### notify

▸ **notify**<`E`&gt;(`type`, `source`, `args?`): [`AccumulationCycleData`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.accumulationcycledata.accumulationcycledata)

Notify listeners

#### Type parameters

| Name | Type |
|  --- | --- |
| `E` | extends `string` |


#### Parameters

| Name  | Type  | Description  |
|  --- | --- | --- |
| `type` | `E` | event types |
| `source` | [`LogAbstractData`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.logabstractdata.logabstractdata) | of the event |
| `Optional` `args` | [`EventMap`](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit.welllog#logabstractdata#eventmap)[`E`] | arguments of the event |


#### Returns

[`AccumulationCycleData`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.accumulationcycledata.accumulationcycledata)

this

#### Inherited from

[LogAbstractData](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.logabstractdata.logabstractdata).[notify](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.logabstractdata.logabstractdata#notify)

#### off

▸ **off**<`E`&gt;(`type?`, `callback?`): [`AccumulationCycleData`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.accumulationcycledata.accumulationcycledata)

Detach listener on event.
Calling .off() with no arguments removes all attached listeners.
Calling .off(type) with no callback removes all attached listeners for specific type.

#### Type parameters

| Name | Type |
|  --- | --- |
| `E` | extends `string` |


#### Parameters

| Name  | Type  | Description  |
|  --- | --- | --- |
| `Optional` `type` | `E` | type of the event |
| `Optional` `callback` | (`eventType`: `E`, `sender`: [`AccumulationCycleData`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.accumulationcycledata.accumulationcycledata), `args`: [`EventMap`](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit.welllog#logabstractdata#eventmap)[`E`]) => `void` | function to be called |


#### Returns

[`AccumulationCycleData`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.accumulationcycledata.accumulationcycledata)

this

#### Inherited from

[LogAbstractData](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.logabstractdata.logabstractdata).[off](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.logabstractdata.logabstractdata#off)

#### on

▸ **on**<`E`&gt;(`type`, `callback`): [`AccumulationCycleData`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.accumulationcycledata.accumulationcycledata)

Attach listener on event that will be called whenever the specified event is delivered to the target
<p>
If the callback function is already in the list of event listeners for this target,
the function is not added a second time.
</p>
<p>
If a particular anonymous function is in the list of event listeners registered for a
certain target, and then later in the code, an identical anonymous function is given
in an "on" call, the second function will also be added to the list of
event listeners for that target.
</p>

#### Type parameters

| Name | Type |
|  --- | --- |
| `E` | extends `string` |


#### Parameters

| Name  | Type  | Description  |
|  --- | --- | --- |
| `type` | `E` | type of event or property |
| `callback` | (`eventType`: `E`, `sender`: [`AccumulationCycleData`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.accumulationcycledata.accumulationcycledata), `args`: [`EventMap`](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit.welllog#logabstractdata#eventmap)[`E`]) => `void` | to be called |


#### Returns

[`AccumulationCycleData`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.accumulationcycledata.accumulationcycledata)

this

#### Inherited from

[LogAbstractData](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.logabstractdata.logabstractdata).[on](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.logabstractdata.logabstractdata#on)

#### parseFromString

▸ **parseFromString**(`depths`, `values`, `colors`): [`AccumulationCycleData`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.accumulationcycledata.accumulationcycledata)

Sets the depths and values of this AccumulationCycleData using the given string arrays.
Uses parseFloat() to parse strings, also recognize 'NaN' values as Number.NaN.

#### Parameters

| Name  | Type  | Description  |
|  --- | --- | --- |
| `depths` | `string` | comma-delimited array of depths |
| `values` | `string` | comma-delimited array of values |
| `colors` | `string` | comma-delimited array of colors |


#### Returns

[`AccumulationCycleData`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.accumulationcycledata.accumulationcycledata)

#### removeValues

▸ **removeValues**(`index`, `count`): `void`

Remove values

#### Parameters

| Name  | Type  | Description  |
|  --- | --- | --- |
| `index` | `number` | position where to remove the values |
| `count` | `number` | count of samples |


#### Returns

`void`

#### requestData

▸ **requestData**(`range`, `scale`, `callback?`): `void`

#### Parameters

| Name  | Type  | Description  |
|  --- | --- | --- |
| `range` | [`Range`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.util.range.range) | range |
| `scale` | `number` | scale |
| `Optional` `callback` | () => `void` | callback to be called after loading data |


#### Returns

`void`

#### Overrides

[LogAbstractData](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.logabstractdata.logabstractdata).[requestData](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.logabstractdata.logabstractdata#requestdata)

#### resumeUpdate

▸ **resumeUpdate**(`forceUpdate`): [`AccumulationCycleData`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.accumulationcycledata.accumulationcycledata)

Resume update.
forceUpdate updates data statistics (update min, max of values, depths...)

#### Parameters

| Name  | Type  | Description  |
|  --- | --- | --- |
| `forceUpdate` | `boolean` | force update based on the state of the data |


#### Returns

[`AccumulationCycleData`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.accumulationcycledata.accumulationcycledata)

this

#### Inherited from

[LogAbstractData](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.logabstractdata.logabstractdata).[resumeUpdate](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.logabstractdata.logabstractdata#resumeupdate)

#### setColor

▸ **setColor**(`index`, `color`): [`AccumulationCycleData`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.accumulationcycledata.accumulationcycledata)

Set fill color by index

**`Deprecated`**

since 4.1 Use setFillStyle instead

#### Parameters

| Name  | Type  | Description  |
|  --- | --- | --- |
| `index` | `number` | index of the sample |
| `color` | `string` | fill color |


#### Returns

[`AccumulationCycleData`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.accumulationcycledata.accumulationcycledata)

this

#### setFillStyle

▸ **setFillStyle**(`index`, `fillStyle`, `merge?`): [`AccumulationCycleData`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.accumulationcycledata.accumulationcycledata)

Set fill style by index

#### Parameters

| Name  | Type  | Description  |
|  --- | --- | --- |
| `index` | `number` | index of the sample |
| `fillStyle` | [`Type`](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit.attributes#fillstyle#type) | fill style |
| `Optional` `merge` | `boolean` | true if you want to merge fillStyle with existing attribute, false by default |


#### Returns

[`AccumulationCycleData`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.accumulationcycledata.accumulationcycledata)

this

#### setIndexUnit

▸ **setIndexUnit**(`unit`): [`AccumulationCycleData`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.accumulationcycledata.accumulationcycledata)

Sets index unit

#### Parameters

| Name  | Type  | Description  |
|  --- | --- | --- |
| `unit` | `string` | [`AbstractUnit`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.util.abstractunit.abstractunit) | index unit |


#### Returns

[`AccumulationCycleData`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.accumulationcycledata.accumulationcycledata)

this

#### Overrides

[LogAbstractData](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.logabstractdata.logabstractdata).[setIndexUnit](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.logabstractdata.logabstractdata#setindexunit)

#### setName

▸ **setName**(`name`): [`AccumulationCycleData`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.accumulationcycledata.accumulationcycledata)

Set name of the data

#### Parameters

| Name  | Type  | Description  |
|  --- | --- | --- |
| `name` | `string` | The log data name |


#### Returns

[`AccumulationCycleData`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.accumulationcycledata.accumulationcycledata)

this

#### Overrides

[LogAbstractData](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.logabstractdata.logabstractdata).[setName](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.logabstractdata.logabstractdata#setname)

#### setProperties

▸ **setProperties**(`properties?`): [`AccumulationCycleData`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.accumulationcycledata.accumulationcycledata)

Sets all the properties pertaining to this object

#### Parameters

| Name  | Type  | Description  |
|  --- | --- | --- |
| `Optional` `properties` | [`Options`](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit.welllog#accumulationcycledata#options) | An object containing the properties to set |


#### Returns

[`AccumulationCycleData`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.accumulationcycledata.accumulationcycledata)

this

#### setSilent

▸ **setSilent**(`bool`): [`AccumulationCycleData`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.accumulationcycledata.accumulationcycledata)

Set silent mode

#### Parameters

| Name  | Type  | Description  |
|  --- | --- | --- |
| `bool` | `boolean` | flag to enable silent mode |


#### Returns

[`AccumulationCycleData`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.accumulationcycledata.accumulationcycledata)

this

#### Inherited from

[LogAbstractData](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.logabstractdata.logabstractdata).[setSilent](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.logabstractdata.logabstractdata#setsilent)

#### setState

▸ **setState**(`state`): [`AccumulationCycleData`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.accumulationcycledata.accumulationcycledata)

Sets state of data.
Values can be (Empty,Normal, Warning,Error,Fetching).

#### Parameters

| Name  | Type  | Description  |
|  --- | --- | --- |
| `state` | [`LogDataState`](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit.welllog#logdatastate) | state of data. |


#### Returns

[`AccumulationCycleData`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.accumulationcycledata.accumulationcycledata)

this

#### Inherited from

[LogAbstractData](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.logabstractdata.logabstractdata).[setState](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.logabstractdata.logabstractdata#setstate)

#### setTitles

▸ **setTitles**(`titles`): [`AccumulationCycleData`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.accumulationcycledata.accumulationcycledata)

Set titles of the data

#### Parameters

| Name  | Type  | Description  |
|  --- | --- | --- |
| `titles` | `string`[] | The log data titles |


#### Returns

[`AccumulationCycleData`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.accumulationcycledata.accumulationcycledata)

this

#### setValue

▸ **setValue**(`index`, `value`): [`AccumulationCycleData`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.accumulationcycledata.accumulationcycledata)

Set value by index

#### Parameters

| Name  | Type  | Description  |
|  --- | --- | --- |
| `index` | `number` | index of the sample |
| `value` | `number` | sample values |


#### Returns

[`AccumulationCycleData`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.accumulationcycledata.accumulationcycledata)

this

#### Overrides

[LogAbstractData](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.logabstractdata.logabstractdata).[setValue](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.logabstractdata.logabstractdata#setvalue)

#### setValueUnit

▸ **setValueUnit**(`unit`): [`AccumulationCycleData`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.accumulationcycledata.accumulationcycledata)

Sets value unit

#### Parameters

| Name  | Type  | Description  |
|  --- | --- | --- |
| `unit` | `string` | [`AbstractUnit`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.util.abstractunit.abstractunit) | value unit |


#### Returns

[`AccumulationCycleData`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.accumulationcycledata.accumulationcycledata)

this

#### Overrides

[LogAbstractData](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.logabstractdata.logabstractdata).[setValueUnit](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.logabstractdata.logabstractdata#setvalueunit)

#### setValues

▸ **setValues**(`depths`, `values`, `fillStyles`, `titles?`): [`AccumulationCycleData`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.accumulationcycledata.accumulationcycledata)

Sets values

#### Parameters

| Name  | Type  | Description  |
|  --- | --- | --- |
| `depths` | `number`[] | The array of ordered depths |
| `values` | `number`[] | The array of values |
| `fillStyles` | [`Type`](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit.attributes#fillstyle#type)[] | The array of fillStyles |
| `Optional` `titles` | `string`[] | The array of titles |


#### Returns

[`AccumulationCycleData`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.accumulationcycledata.accumulationcycledata)

this

#### suspendUpdate

▸ **suspendUpdate**(): [`AccumulationCycleData`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.accumulationcycledata.accumulationcycledata)

Suspend update

#### Returns

[`AccumulationCycleData`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.accumulationcycledata.accumulationcycledata)

this

#### Inherited from

[LogAbstractData](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.logabstractdata.logabstractdata).[suspendUpdate](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.logabstractdata.logabstractdata#suspendupdate)

#### trimValues

▸ **trimValues**(`startDepth`, `endDepth`): `void`

Remove values from start to end depth.
If startDepth is NaN or endDepth is NaN then it uses infinity values

#### Parameters

| Name  | Type  | Description  |
|  --- | --- | --- |
| `startDepth` | `number` | where to start trim |
| `endDepth` | `number` | where to end trim |


#### Returns

`void`

#### update

▸ `Protected` **update**(`args?`): `void`

Notify when data has been changed.

#### Parameters

| Name  | Type  | Description  |
|  --- | --- | --- |
| `Optional` `args` | [`LogDataEvent`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.logdataevent.logdataevent) | optional parameters |


#### Returns

`void`

#### Inherited from

[LogAbstractData](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.logabstractdata.logabstractdata).[update](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.logabstractdata.logabstractdata#update)

#### updateDataStatistics

▸ `Protected` **updateDataStatistics**(): [`AccumulationCycleData`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.accumulationcycledata.accumulationcycledata)

Update data statistics

#### Returns

[`AccumulationCycleData`](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.accumulationcycledata.accumulationcycledata)

this

#### Overrides

[LogAbstractData](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.logabstractdata.logabstractdata).[updateDataStatistics](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.logabstractdata.logabstractdata#updatedatastatistics)

#### updateTimeStamp

▸ **updateTimeStamp**(): `void`

Update time stamp

#### Returns

`void`

#### Inherited from

[LogAbstractData](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.logabstractdata.logabstractdata).[updateTimeStamp](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.logabstractdata.logabstractdata#updatetimestamp)

#### findValueAt

▸ `Static` **findValueAt**(`depth`, `depths`, `values`, `prev`, `next`, `interpolation?`, `interpolationMode?`): `number`

Utility function to interpolate a value between two depths.

#### Parameters

| Name  | Type  | Description  |
|  --- | --- | --- |
| `depth` | `number` | The depth for which you want to compute the value |
| `depths` | `number`[] | The array of ordered depths |
| `values` | `number`[] | The array of values |
| `prev` | `number` | The index of the largest previous depth |
| `next` | `number` | The index of the smallest following depth |
| `Optional` `interpolation` | [`InterpolationType`](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit.data#interpolationtype) | interpolation type for the value |
| `Optional` `interpolationMode` | [`InterpolationMode`](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit.data#interpolationmode) | interpolation mode for the value |


#### Returns

`number`

The interpolated value or Number.NaN if outside the range

#### Inherited from

[LogAbstractData](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.logabstractdata.logabstractdata).[findValueAt](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.logabstractdata.logabstractdata#findvalueat)

#### getClassName

▸ `Static` **getClassName**(): `string`

#### Returns

`string`

#### Inherited from

[LogAbstractData](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.logabstractdata.logabstractdata).[getClassName](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.logabstractdata.logabstractdata#getclassname-1)

#### interpolateValueAt

▸ `Static` **interpolateValueAt**(`depth`, `depthPrev`, `valuePrev`, `depthNext`, `valueNext`, `interpolation?`, `interpolationMode?`): `number`

Utility function to interpolate a value between two depths.

#### Parameters

| Name  | Type  | Description  |
|  --- | --- | --- |
| `depth` | `number` | The depth for which you want to compute the value |
| `depthPrev` | `number` | prev depth |
| `valuePrev` | `number` | prev value |
| `depthNext` | `number` | next depth |
| `valueNext` | `number` | next value |
| `Optional` `interpolation` | [`InterpolationType`](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit.data#interpolationtype) | interpolation type for the value |
| `Optional` `interpolationMode` | [`InterpolationMode`](/solutions/geotoolkit/geotoolkit_js/apis/modules/geotoolkit.data#interpolationmode) | interpolation mode for the value |


#### Returns

`number`

The interpolated value or Number.NaN if outside the range

#### Inherited from

[LogAbstractData](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.logabstractdata.logabstractdata).[interpolateValueAt](/solutions/geotoolkit/geotoolkit_js/apis/classes/geotoolkit.welllog.data-4.logabstractdata.logabstractdata#interpolatevalueat)