Utility class used for creating stacked series.
StackingUtil
_cleanXNaN
xcoords
ycoords
Cleans invalid x-coordinates by calculating their value based on the corresponding y-coordinate, the previous valid x-coordinate with its corresponding y-coordinate and the next valid x-coordinate with its corresponding y-coordinate. If there is no previous or next valid x-coordinate, the value will not be altered.
_cleanYNaN
xcoords
ycoords
Cleans invalid y-coordinates by calculating their value based on the corresponding x-coordinate, the previous valid y-coordinate with its corresponding x-coordinate and the next valid y-coordinate with its corresponding x-coordinate. If there is no previous or next valid y-coordinate, the value will not be altered.
_getNextValidCoordValue
coords
index
Returns the next valid (numeric) value in an array if available.
Number
_getPreviousValidCoordValue
coords
index
Returns the previous valid (numeric) value in an array if available.
Number
_stackCoordinates
_stackXCoords
Stacks coordinates for a stacked vertical series.
_stackYCoords
Stacks coordinates for a stacked horizontal series.
_stacked
Indicates whether the series is stacked.