Skip to content

Commit 8a36606

Browse files
fix not displaying trimmed xAxisLabel when should be displayed
1 parent 84b3fc4 commit 8a36606

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)