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 b90cfea commit 4968334Copy full SHA for 4968334
src/axes/Axis.ts
@@ -91,7 +91,10 @@ export abstract class Axis {
91
// If we don't have a label ahead and we have only two labels in total, we just take the remaining distance to
92
// on the whole axis length. We limit that to a minimum of 30 pixel, so that labels close to the border will
93
// still be visible inside of the chart padding.
94
- labelLength = Math.max(this.axisLength - projectedValue, 30);
+ labelLength = Math.max(
95
+ this.axisLength - projectedValue,
96
+ this.axisLength / this.ticks.length
97
+ );
98
}
99
100
// Skip grid lines and labels where interpolated label values are falsey (except for 0)
0 commit comments