Fields
-
(static) PivotType :string
-
Valid pivot types
Properties:
Name Type Default Description AFTERstring after Move the from location after the to location BEFOREstring before Move the from location before the to location SWAPstring swap Exchange the from location with the to location
Methods
-
getAxes : {Array.<CubeAxis>}
-
Get the CubeAxis objects in this cube
Returns:
an array of CubeAxis objects
- Type
- Array.<CubeAxis>
-
getLayout : {Array.<Object>}
-
Return the current layout used to build the cube
- See:
Returns:
current layout
- Type
- Array.<Object>
-
getValues(indices) : {Array.<CubeDataValue>|CubeDataValue}
-
Get CubeDataValues from this cube. These represent the values of the data in the "body" of the cube
Parameters:
Name Type Description indicesArray<Cube.Indices | number> an axis-ordered array of Objects or numbers. If Objects, each should contain a 'start' property (the zero based start index for the axis) and a 'count' representing the number of data values beginning at 'start' to return on this axis. This format allows the retrieval of a block of data. Passing an array of numbers alone is equivalent to passing {start: , count:1} and getting a single CubeDataValue Returns:
either an array of arrays of CubeDataValue, depending on the number of values requested in indices, or a single CubeDataValue The first subscript represents the 0th axis' values, and so on.
- Type
- Array.<CubeDataValue> | CubeDataValue
-
pivot(axisFrom, levelFrom, axisTo, levelTo, type) : {boolean}
-
Parameters:
Name Type Description axisFromnumber the axis from which to move a level levelFromnumber the level within axisFrom to move to axisTo/levelTo (zero is slowest/outermost) axisTonumber the axis to which to move levelFrom levelTonumber the level within axisTo to move the levelFrom level (zero is slowest/outermost) typeCube.PivotType the type of pivot to perform Returns:
true if successful
- Type
- boolean
-
setPage(pin) : {undefined}
-
Set a pinned index for all axes above axis 1 ("pages")
Parameters:
Name Type Description pinArray.<Cube.Pin> | Cube.Pin an array of objects (or a single object) containing an integer 'axis' attribute and its corresponding 'index' value (to which to pin the cube) Returns:
- Type
- undefined