Skip to content

Commit e92b6cd

Browse files
committed
Add mocks for zindex in histogram, heatmap, and contour traces
1 parent ff01eb6 commit e92b6cd

File tree

3 files changed

+57
-0
lines changed

3 files changed

+57
-0
lines changed

test/image/mocks/zindex-contour.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"data": [
3+
{
4+
"type": "scatter",
5+
"name": "scatter",
6+
"y": [-1,0,1,2,3],
7+
"x": [-1,0,1,2,3],
8+
"zindex": 1
9+
}, {
10+
"type": "contour",
11+
"z": [
12+
[1, 2, 3],
13+
[2, 0, 0],
14+
[3, 0, 3]
15+
],
16+
"zindex": 10
17+
}
18+
]
19+
}

test/image/mocks/zindex-heatmap.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"data": [
3+
{
4+
"type": "scatter",
5+
"y": [-0.5,0,1,2,3.5],
6+
"x": [-0.5,0,1,2,3.5]
7+
}, {
8+
"x": [ 3, 2, 1, 0 ],
9+
"y": [ 3, 2, 1, 0 ],
10+
"z": [
11+
[ 98, 97, 96 ],
12+
[ 88, 87, 86 ],
13+
[ 78, 77, 76 ]
14+
],
15+
"type": "heatmap",
16+
"showscale": false,
17+
"xgap": 5,
18+
"ygap": 5,
19+
"zindex": 10
20+
}
21+
]
22+
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"data": [
3+
{
4+
"type": "scatter",
5+
"name": "scatter",
6+
"y": [-1,0,1,2],
7+
"x": [-1,0,1,2],
8+
"zindex": 1
9+
}, {
10+
"type": "histogram",
11+
"name": "histogram zindex=10",
12+
"x": [0,0.5,1],
13+
"zindex": 10
14+
}
15+
]
16+
}

0 commit comments

Comments
 (0)