Skip to content

Commit a7d9ac3

Browse files
committed
replace break-lines on 3d plot ticks when the axis type is date
1 parent 5bba5e7 commit a7d9ac3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/plots/gl3d/layout/tick_marks.js

+5
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,11 @@ function computeTickMarks(scene) {
7171
var dataTicks = Axes.calcTicks(axes);
7272
for(var j = 0; j < dataTicks.length; ++j) {
7373
dataTicks[j].x = dataTicks[j].x * scene.dataScale[i];
74+
75+
if(axes.type === 'date') {
76+
dataTicks[j].text =
77+
dataTicks[j].text.replace(/\<br\>/g, ' ');
78+
}
7479
}
7580
ticks[i] = dataTicks;
7681

0 commit comments

Comments
 (0)