We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e766f8c commit 56e9695Copy full SHA for 56e9695
superset-frontend/plugins/legacy-plugin-chart-heatmap/src/Heatmap.js
@@ -111,7 +111,7 @@ function Heatmap(element, props) {
111
let showY = true;
112
let showX = true;
113
const pixelsPerCharX = 4.5; // approx, depends on font size
114
- const pixelsPerCharY = 6; // approx, depends on font size
+ let pixelsPerCharY = 6; // approx, depends on font size
115
116
const valueFormatter = getNumberFormatter(numberFormat);
117
@@ -121,6 +121,7 @@ function Heatmap(element, props) {
121
let longestY = 1;
122
123
records.forEach(datum => {
124
+ if (typeof datum.y === 'number') pixelsPerCharY = 7;
125
longestX = Math.max(
126
longestX,
127
(datum.x && datum.x.toString().length) || 1,
0 commit comments