Skip to content

Commit ab11db2

Browse files
committed
Add baseline test for pie legend/showlegend arrays when label0 is used instead of labels.
1 parent 3e5e53f commit ab11db2

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
{
2+
"data": [
3+
{
4+
"label0": 1,
5+
"type": "pie",
6+
"values": [1,2,3,4],
7+
"showlegend": [true, false, true],
8+
"legend": ["legend", "legend2", "legend3"]
9+
}
10+
],
11+
"layout": {
12+
"title": {
13+
"text": "Slice 2 is hidden, slice 4 is assigned<br>default legend and default visibility"
14+
},
15+
"width": 400,
16+
"height": 400,
17+
"legend": {
18+
"title": {
19+
"text": "legend"
20+
},
21+
"xanchor": "left",
22+
"yanchor": "top",
23+
"x": -0.2,
24+
"y": -0.1
25+
},
26+
"legend2": {
27+
"title": {
28+
"text": "legend2: I should be hidden!"
29+
},
30+
"xanchor": "left",
31+
"yanchor": "top",
32+
"x": 0.1,
33+
"y": -0.1
34+
},
35+
"legend3": {
36+
"title": {
37+
"text": "legend3"
38+
},
39+
"xanchor": "left",
40+
"yanchor": "top",
41+
"x": 0.4,
42+
"y": -0.1
43+
}
44+
}
45+
}

0 commit comments

Comments
 (0)