Skip to content

charton API


charton API / @chart-on/core / index / pointOfControl

Function: pointOfControl() ​

pointOfControl(volume, rows?): number

Defined in: packages/core/src/profile/math.ts:253

Row with the most volume, or -1 when every row is empty. Ties go to the row nearest the middle of the profile; equally near ties go to the lower row.

Parameters ​

volume ​

ArrayLike<number>

rows? ​

number = volume.length

Returns ​

number