getReducedData method
getReducedData(qPages, qZoomFactor, qReductionMode)
Method used to get reduced data from the Qlik engine for this object. This method is intended for preserving the shape of the data, not for viewing the actual data points.
- Since:
-
- 1.0
Information noteThis method only works for hypercubes.
Parameters
Name | Type | Description |
---|---|---|
qPages | Array | An array of request page objects. |
qZoomFactor | Number |
Zoom factor. If set to -1, the Qlik engine decides of the zoom factor. If qReductionMode is D1 or S, the zoom factor is 2ⁿ. If the zoom factor is 5, the data are reduced by a factor 32. If qReductionMode is C, the zoom factor defines the number of centroids. |
qReductionMode | String |
Reduction mode.Can be:
|
Returns
Returns a promise of reduced data pages.
Tip noteFor more information regarding a promise, see http://docs.angularjs.org/api/ng.$q.
Example
var requestPage = [{
qTop : 0,
qLeft : 0,
qWidth : 10,
qHeight : count
}];
this.backendApi.getReducedData(requestPage, -1, "D1").then(function(dataPages) {
...
});
Did this page help you?
If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!