Skip to content

Commit e227763

Browse files
committed
remove outsudetext from funnelarea mock
1 parent 79415cd commit e227763

File tree

3 files changed

+5
-70
lines changed

3 files changed

+5
-70
lines changed
-12.1 KB
Loading

test/image/mocks/funnelarea_fonts.json

Lines changed: 4 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,6 @@
1414
"x": [
1515
0,
1616
0.4
17-
],
18-
"y": [
19-
0.6,
20-
1
2117
]
2218
}
2319
},
@@ -35,80 +31,19 @@
3531
"x": [
3632
0.6,
3733
1
38-
],
39-
"y": [
40-
0.6,
41-
1
4234
]
4335
},
4436
"textfont": {
4537
"family": "Times New Roman, Times, serif",
4638
"size": 15,
47-
"color": "#cc0"
48-
}
49-
},
50-
{
51-
"values": [
52-
3,
53-
1
54-
],
55-
"text": [
56-
"outside and textfont<br>both modify...",
57-
"global"
58-
],
59-
"type": "funnelarea",
60-
"domain": {
61-
"x": [
62-
0,
63-
0.4
64-
],
65-
"y": [
66-
0,
67-
0.4
68-
]
69-
},
70-
"textfont": {
71-
"size": 12
72-
},
73-
"outsidetextfont": {
74-
"color": "#c80"
75-
}
76-
},
77-
{
78-
"values": [
79-
3,
80-
1
81-
],
82-
"text": [
83-
"independent fonts<br>outside and...",
84-
"inside"
85-
],
86-
"type": "funnelarea",
87-
"domain": {
88-
"x": [
89-
0.6,
90-
1
91-
],
92-
"y": [
93-
0,
94-
0.4
95-
]
96-
},
97-
"outsidetextfont": {
98-
"family": "Raleway, sans-serif",
99-
"size": 10,
100-
"color": "#800"
101-
},
102-
"insidetextfont": {
103-
"family": "Courier New, monospace",
104-
"size": 14,
105-
"color": "#fff"
39+
"color": "#700"
10640
}
10741
}
42+
10843
],
10944
"layout": {
110-
"height": 500,
111-
"width": 600,
45+
"height": 300,
46+
"width": 500,
11247
"font": {
11348
"family": "Old Standard TT, serif",
11449
"size": 20

test/jasmine/tests/funnelarea_test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -610,7 +610,7 @@ describe('Funnelarea traces', function() {
610610
})
611611
.then(_checkFontColors(['rgb(0, 0, 255)', 'rgb(0, 0, 255)', 'rgb(0, 0, 255)']))
612612
.then(function() {
613-
gd.data[0].textposition = 'outside';
613+
gd.data[0].textposition = 'none';
614614
return Plotly.react(gd, gd.data);
615615
})
616616
.then(_checkFontColors(['rgb(0, 0, 255)', 'rgb(0, 0, 255)', 'rgb(0, 0, 255)']))

0 commit comments

Comments
 (0)