Skip to content

Commit 13a3290

Browse files
Fix to column properties wrong column number render
1 parent 1bacfc2 commit 13a3290

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "LightPivotTable",
33
"author": "ZitRo",
4-
"version": "1.6.3",
4+
"version": "1.6.4",
55
"description": "A lightweight pivot table for MDX2JSON source for InterSystems Cache",
66
"main": "test/testServer.js",
77
"repository": {

source/js/PivotView.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1390,8 +1390,8 @@ PivotView.prototype.renderRawData = function (data) {
13901390
+ "," + Math.round((colorScale.to.b - colorScale.from.b)*ratio + colorScale.from.b)
13911391
+ ");" + (colorScale.invert ? "color: white;" : "");
13921392
}
1393-
if (columnProps[x - info.leftHeaderColumnsNumber].style) {
1394-
cellStyle += columnProps[x - info.leftHeaderColumnsNumber].style;
1393+
if (columnProps[x].style) {
1394+
cellStyle += columnProps[x].style;
13951395
}
13961396
if (rawData[y][x].style) {
13971397
cellStyle += rawData[y][x].style;

0 commit comments

Comments
 (0)