From b8ccac79871ef3ff22bb4e365b8b201202a72e5f Mon Sep 17 00:00:00 2001 From: Ossama Rafique Date: Wed, 15 Nov 2023 19:17:51 -0500 Subject: [PATCH] Fixed row group data being used to render groups for columns grouping (#31) --- package.json | 2 +- src/BaseGL.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 9f0c8a6..725c40b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "epiviz.heatmap.gl", - "version": "0.0.20", + "version": "0.0.21", "repository": "https://github.com/jkanche/epiviz.heatmap.gl", "homepage": "https://github.com/jkanche/epiviz.heatmap.gl", "author": { diff --git a/src/BaseGL.js b/src/BaseGL.js index f1cfa48..e910211 100644 --- a/src/BaseGL.js +++ b/src/BaseGL.js @@ -1022,7 +1022,7 @@ class BaseGL { const maxXRange = this.xAxisRange[1] - this.xAxisRange[0]; const minX = this.xAxisRange[0]; - this.groupingRowData.forEach((group, idx) => { + this.columnGroupingData.forEach((group, idx) => { const normalizedStart = (group.startIndex / totalData) * maxXRange + minX; const normalizedEnd = ((group.endIndex + 1) / totalData) * maxXRange + minX;