diff --git a/package.json b/package.json index 0d79867..d1bed84 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "LightPivotTable", "author": "ZitRo", - "version": "1.6.3", + "version": "1.6.4", "description": "A lightweight pivot table for MDX2JSON source for InterSystems Cache", "main": "test/testServer.js", "repository": { diff --git a/source/js/PivotView.js b/source/js/PivotView.js index b35e10b..b65d072 100644 --- a/source/js/PivotView.js +++ b/source/js/PivotView.js @@ -1390,8 +1390,8 @@ PivotView.prototype.renderRawData = function (data) { + "," + Math.round((colorScale.to.b - colorScale.from.b)*ratio + colorScale.from.b) + ");" + (colorScale.invert ? "color: white;" : ""); } - if (columnProps[x - info.leftHeaderColumnsNumber].style) { - cellStyle += columnProps[x - info.leftHeaderColumnsNumber].style; + if (columnProps[x].style) { + cellStyle += columnProps[x].style; } if (rawData[y][x].style) { cellStyle += rawData[y][x].style;