Skip to main content Skip to complementary content

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:

  • N for no data reduction.
  • D1 to reduce a bar chart or line chart. The profile of the chart is reduced whatever the number of dimensions in the chart.
  • S to reduce the resolution of a scatter plot.
  • C to reduce the data of a scatter plot chart.
  • ST to reduce the data of a stacked pivot table.

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!