Skip to content
This repository has been archived by the owner on May 11, 2023. It is now read-only.

Commit

Permalink
Merge pull request #54 from qlik-oss/QB-750-Heatmap-disproportional
Browse files Browse the repository at this point in the history
Fix: QB-750-Heatmap
  • Loading branch information
chaitraraoqlik authored Feb 26, 2020
2 parents f38a445 + 36fc541 commit b77a42b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/paint.js
Original file line number Diff line number Diff line change
Expand Up @@ -297,12 +297,12 @@ function setupPaint({ $, qlik }) {
.domain(scaleDomain)
.range(colors);

gridSize = Math.floor((width - margin.left - margin.right) / gridDivider);
gridSize = Math.floor((width - margin.left - margin.right) / dim2keys.length);
if (gridSize <= thresholds.minimum){
gridSize = thresholds.minimum;
}
const thresholdClasses = getThresholdClasses(gridSize);
legendElementWidth = Math.floor((gridSize * gridDivider) / (colorScale.quantiles().length + 1));
legendElementWidth = Math.floor((gridSize * dim2keys.length) / (colorScale.quantiles().length + 1));

margin.top = (showLegend ? 50 : 20) + dim2RotationOffset;

Expand Down

0 comments on commit b77a42b

Please sign in to comment.