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 64538a8 commit 4bec5b5Copy full SHA for 4bec5b5
src/dimensions.js
@@ -28,9 +28,7 @@ export function autoMarginK(
28
if (scale === "y" || scale === "fy") {
29
const width = mark.monospace ? monospaceWidth : defaultWidth;
30
const labelPenalty = actualLabel && (labelAnchor === "center" || (labelAnchor == null && scales[scale].bandwidth));
31
- const l =
32
- max(channels.text.value, (t) => (t ? width(`${t}`) : NaN)) * (mark.monospace ? 0.6 : 1) +
33
- (labelPenalty ? 100 : 0);
+ const l = max(channels.text.value, (t) => (t ? width(`${t}`) : NaN)) + (labelPenalty ? 100 : 0);
34
const m = l >= 500 ? marginLarge : l >= 295 ? marginMedium : null;
35
return m === null
36
? options
0 commit comments