Skip to content

Commit a7e8eaf

Browse files
committed
add outside ticks to multicategory2 mock
... to show divider span bug, update baseline using 1.49.4
1 parent d54ec94 commit a7e8eaf

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

src/plots/cartesian/axes.js

+2
Original file line numberDiff line numberDiff line change
@@ -1799,6 +1799,8 @@ axes.drawOne = function(gd, ax, opts) {
17991799
var pad = {x: 2, y: 10}[axLetter];
18001800
var sgn = tickSigns[2] * (ax.ticks === 'inside' ? -1 : 1);
18011801

1802+
// TODO missing 'ax.ticklen` part when tickson:'labels'
1803+
18021804
seq.push(function() {
18031805
labelLength += getLabelLevelSpan(ax, axId + 'tick') + pad;
18041806
labelLength += ax._tickAngles[axId + 'tick'] ? ax.tickfont.size * LINE_SPACING : 0;
-171 Bytes
Loading

test/image/mocks/multicategory2.json

+5-3
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,12 @@
2525
],
2626
"layout": {
2727
"xaxis": {
28-
"title": "MULTI-CATEGORY ON TOP",
28+
"title": {"text": "MULTI-CATEGORY ON TOP"},
2929
"side": "top",
30-
"automargin": true,
31-
"tickson": "labels"
30+
"tickson": "labels",
31+
"ticks": "outside",
32+
"ticklen": 25,
33+
"automargin": true
3234
},
3335
"showlegend": false,
3436
"width": 400,

0 commit comments

Comments
 (0)