ItemData Interface
Multidimensional data visualized in the dashboard item.
Declaration
export interface ItemData
Each data-bound dashboard item uses a multidimensional representation of data (the ItemData class). This provides the capability to visualize information hierarchically. For instance, the pivot grid allows end-users to expand or collapse column/row field values to view data at different detail levels. The Drill-Down feature provides a common way to move between different detail levels in different dashboard items. Use the getItemData(itemName) method to obtain multidimensional data visualized in the specified dashboard item.
The value corresponding to a specific hierarchy level is stored in the ItemDataAxisPoint class that defines a data point in a multidimensional space. Such data points are placed on a specific data axis that is represented by the ItemDataAxis class. For instance, a pivot grid has the “Row” and “Column” axes, a chart has the “Argument” and “Series” axes, etc.
Use the following methods to access the displayed data.
- The getAxisNames property returns the names of available data axes. You can obtain the required axis using the getAxis(axisName) method.
- Use the getPoints method to obtain the axis points that are placed on the obtained data axis.
- Obtain the dimension value using the getDimensionValue method.
Methods
createTuple(values) Method
Declaration
createTuple(values: Array<ItemDataAxisPoint> | Array<{
axisName: ItemDataAxisName;
value: Array<PrimitiveType>;
}>): ItemDataAxisPointTuple
Parameters
Returns
getAxis(axisName) Method
Declaration
getAxis(
axisName: ItemDataAxisName
): ItemDataAxis
Parameters
Returns
getAxisNames Method
Declaration
getAxisNames(): Array<ItemDataAxisName>
Returns
getDataMembers Method
Declaration
getDataMembers(): Array<string>
Returns
getDeltas Method
Declaration
getDeltas(): Array<ItemDataDelta>
Returns
getDeltaValue(deltaId) Method
Declaration
getDeltaValue(
deltaId: string
): ItemDataDeltaValue
Parameters
Returns
getDimensions(axisName) Method
Declaration
getDimensions(
axisName: ItemDataAxisName
): Array<ItemDataDimension>
Parameters
Returns
getMeasures Method
Declaration
getMeasures(): Array<ItemDataMeasure>
Returns
getMeasureValue(measureId) Method
Declaration
getMeasureValue(
measureId: string
): ItemDataMeasureValue
Parameters
Name |
Type |
measureId |
string |
Returns
getSlice(value) Method
Declaration
getSlice(
value: ItemDataAxisPointTuple | ItemDataAxisPoint
): ItemData
Parameters
Returns