Skip to content

Commit 1182fbe

Browse files
authored
Merge pull request #1347 from plotly/pr1337-with-baseline
PR 1337 with baseline
2 parents 5206b49 + b217566 commit 1182fbe

File tree

3 files changed

+47
-1
lines changed

3 files changed

+47
-1
lines changed

src/plots/cartesian/axes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1604,7 +1604,7 @@ axes.doTicks = function(gd, axid, skipTitle) {
16041604
var axletter = axid.charAt(0),
16051605
counterLetter = axes.counterLetter(axid),
16061606
vals = axes.calcTicks(ax),
1607-
datafn = function(d) { return d.text + d.x + ax.mirror; },
1607+
datafn = function(d) { return [d.text, d.x, ax.mirror].join('_'); },
16081608
tcls = axid + 'tick',
16091609
gcls = axid + 'grid',
16101610
zcls = axid + 'zl',

test/image/baselines/tick-datafn.png

26.2 KB
Loading

test/image/mocks/tick-datafn.json

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
{
2+
"data":[
3+
{
4+
"x":[
5+
"Jan 11",
6+
"Jan 10",
7+
"Jan 9",
8+
"Jan 8",
9+
"Jan 7",
10+
"Jan 6",
11+
"Jan 5",
12+
"Jan 4",
13+
"Jan 3",
14+
"Jan 2",
15+
"Jan 1",
16+
"Dec 31"
17+
],
18+
"y":[
19+
8,
20+
7,
21+
6,
22+
5,
23+
4,
24+
3,
25+
2,
26+
1,
27+
0,
28+
1,
29+
2,
30+
3
31+
],
32+
"type":"scatter"
33+
}
34+
],
35+
"layout":{
36+
"xaxis":{
37+
"ticks":"outside",
38+
"tickcolor":"#000"
39+
},
40+
"yaxis":{
41+
"ticks":"outside",
42+
"tickcolor":"#000",
43+
"gridwidth":0.1
44+
}
45+
}
46+
}

0 commit comments

Comments
 (0)