ChartDirector Ver 4.1 (C++ Edition)

ArrayMath.shift


Usage

ArrayMath &shift(int offset = 1, double fillValue = NoValue);

Description

Shifts the array "rightwards".

If the array does not have any NoValue data points, this method will shift the point at position "n" to "n + offset". On the "right" side of the array (the side with the largest index), points that are shifted outside the array will be discarded. On the "left" side of the array, fillValue data points will be shifted in.

If the array contains NoValue data points, these points are not shifted. Conceptually, one can imagine the non-NoValue points being shifted to the next non-NoValue positions, and the process repeats offset number of times.
SEO India | Search Engine Optimization Company India

Arguments

Argument Default Description
offset 1 The number of positions to shift the array "rightwards."
fillValue NoValue The new value to be shifted into the array.

Return Value

The current ArrayMath object.