Skip to content

Commit

Permalink
prevent text ellipsis on datetime xaxis - fixes #507
Browse files Browse the repository at this point in the history
  • Loading branch information
junedchhipa committed Apr 16, 2019
1 parent a417019 commit 8834ff4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/axes/XAxis.js
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ export default class XAxis {
for (let xat = 0; xat < xAxisTexts.length; xat++) {
let tSpan = xAxisTexts[xat].childNodes

if (w.config.xaxis.labels.trim && !w.globals.isBarHorizontal) {
if (w.config.xaxis.labels.trim && w.config.xaxis.type !== 'datetime') {
graphics.placeTextWithEllipsis(tSpan[0], tSpan[0].textContent, width)
}
}
Expand Down

0 comments on commit 8834ff4

Please sign in to comment.