Skip to content

Commit f34da74

Browse files
authored
Merge pull request #4964 from Invincible-Study-Soru/bug/not-display-trimmed-xLabel
Bug/not display trimmed x label
2 parents 21e3629 + 8a36606 commit f34da74

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/modules/axes/AxesUtils.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,9 @@ export default class AxesUtils {
153153

154154
if (w.config.xaxis.labels.hideOverlappingLabels && drawnLabels.length > 0) {
155155
const prev = drawnLabelsRects[drawnLabelsRects.length - 1]
156+
if (w.config.xaxis.labels.trim && w.config.xaxis.type !== 'datetime') {
157+
return label
158+
}
156159
if (
157160
label.x <
158161
prev.textRect.width /

0 commit comments

Comments
 (0)