Hi,
Below is my Javascript Code to get the data from the table with Hyper-cube. When I am selecting 24 Rows then I am getting data and Visualization in correct way. But If I am selecting 48 Rows then I am getting NaN in Some of the Object.
.JS File Code
hypercube.qDataPages[0].qMatrix.forEach(function (qData, index) {
data.push({
// Dimensions
'A': Number(qData[0].qText),
'B': Number(qData[1].qText),
'C': Number(qData[2].qText),
// Measures
'D': Number(qData[3].qText),
'E': Number(qData[4].qText),
'F': Number(qData[5].qText),
'G': qData[6].qText,
'H': qData[7].qText,
'I': qData[8].qText,
'J': qData[9].qText
})
}
properties.js
dimensions: {
uses: "dimensions",
min: 1,
max: 3
},
measures: {
uses: "measures",
min: 7,
max: 7
},
initialProperties.js
define([],
function () {
"use strict";
return {
qHyperCubeDef: {
qDimensions: [],
qMeasures: [],
qInitialDataFetch: [{
qWidth: 10,
qHeight: 1000
}]
}
};
});
Please do the needful to resolve this issue.
Thanks,
Premal kapadia