Skip to content

Commit ff7ca7a

Browse files
committed
Test more cases in shapes_layer_below_traces mock
- added axis y2 to test interaction between axes - added shape label - moved dashdot line to see more of its interaction with the gridlines - removed transparency for easier visual checking
1 parent 11e05a1 commit ff7ca7a

File tree

1 file changed

+18
-9
lines changed

1 file changed

+18
-9
lines changed

test/image/mocks/zz-shapes_layer_below_traces.json

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -34,22 +34,23 @@
3434
35,
3535
55
3636
],
37-
"type": "bar"
37+
"type": "bar",
38+
"yaxis":"y2"
3839
}
3940
],
4041
"layout": {
4142
"shapes": [
4243
{
4344
"name": "dashdot line",
44-
"fillcolor": "rgba(179,179,179,0.6)",
45+
"fillcolor": "rgba(179,179,179,1)",
4546
"layer": "above",
4647
"line": {
47-
"color": "rgba(66,127,109,0.6)",
48+
"color": "rgba(66,127,109,1)",
4849
"dash": "dashdot"
4950
},
5051
"type": "line",
51-
"x0": 0.75,
52-
"x1": 0.75,
52+
"x0": 0.4,
53+
"x1": 0.4,
5354
"xref": "x",
5455
"y0": 0.0,
5556
"y1": 1.0,
@@ -72,17 +73,20 @@
7273
},
7374
{
7475
"name": "blue rect",
75-
"fillcolor": "rgba(108,173,225,0.8)",
76+
"fillcolor": "rgba(108,173,225,1)",
7677
"layer": "between",
78+
"label": {
79+
"text": "hello, I am between gridlines and traces!"
80+
},
7781
"line": {
78-
"color": "rgba(108,173,225,0.8)"
82+
"color": "rgba(108,173,225,1)"
7983
},
8084
"type": "rect",
8185
"x0": "B",
8286
"x1": "D",
8387
"xref": "x",
84-
"y0": 40,
85-
"y1": 70.0
88+
"y0": 35,
89+
"y1": 65.0
8690
},
8791
{
8892
"name": "big rect",
@@ -121,6 +125,11 @@
121125
"215"
122126
],
123127
"type": "linear"
128+
},
129+
"yaxis2": {
130+
"side": "right",
131+
"overlaying": "y"
124132
}
133+
125134
}
126135
}

0 commit comments

Comments
 (0)