Skip to content

Commit c3638a6

Browse files
committed
test: add more mock images of bar plots
* Added mock images of bar plots using the attributes base, offset and width.
1 parent a12872d commit c3638a6

8 files changed

+121
-0
lines changed
9.74 KB
Loading
10.1 KB
Loading
10.4 KB
Loading
10.8 KB
Loading

test/image/mocks/bar_attrs_group.json

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"data":[
3+
{
4+
"base":[0,1,2,3],
5+
"width":0.2,
6+
"y":[1,1,1,1],
7+
"x":[1,2,3,4],
8+
"type":"bar"
9+
}, {
10+
"base":[4,3,2,1],
11+
"y":[-1,-1,-1,-1],
12+
"x":[1,2,3,4],
13+
"type":"bar"
14+
}, {
15+
"base":[0,1,3,2],
16+
"width":0.125,
17+
"y":[1,2,-1,2],
18+
"x":[1,2,3,4],
19+
"type":"bar"
20+
}, {
21+
"base":[1,3,2,4],
22+
"y":[-1,-2,1,-2],
23+
"x":[1,2,3,4],
24+
"type":"bar"
25+
}
26+
],
27+
"layout":{
28+
"height":400,
29+
"width":400,
30+
"barmode":"group",
31+
"barnorm":false
32+
}
33+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"data":[
3+
{
4+
"base":4,
5+
"x":[3,2,1,0],
6+
"type":"bar"
7+
}, {
8+
"base":[7,6,5,4],
9+
"x":[1,2,3,4],
10+
"type":"bar"
11+
}
12+
],
13+
"layout":{
14+
"height":400,
15+
"width":400,
16+
"barmode":"group",
17+
"barnorm":"percent"
18+
}
19+
}
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{
2+
"data":[
3+
{
4+
"base":[0,1,2,3],
5+
"width":[1,0.8,0.6,0.4],
6+
"offset":[0,0,-0.2,-0.6],
7+
"y":[1,1,1,1],
8+
"x":[1,2,3,4],
9+
"type":"bar"
10+
}, {
11+
"base":[4,3,2,1],
12+
"width":[0.4,0.6,0.8,1],
13+
"offset":[-0.2,-0.8,-1.2,-1.4],
14+
"y":[-1,-1,-1,-1],
15+
"x":[5,6,7,8],
16+
"type":"bar"
17+
}, {
18+
"base":[0,1,3,2],
19+
"width":1,
20+
"offset":[1.5],
21+
"y":[1,2,-1,2],
22+
"x":[9,10,11,12],
23+
"type":"bar"
24+
}, {
25+
"base":[1,3,2,4],
26+
"y":[-1,-2,1,-2],
27+
"x":[13,14,15,16],
28+
"type":"bar"
29+
}
30+
],
31+
"layout":{
32+
"xaxis": {"showgrid":true},
33+
"height":400,
34+
"width":400,
35+
"barmode":"overlay",
36+
"barnorm":false
37+
}
38+
}
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"data":[
3+
{
4+
"width":[1,0.8,0.6,0.4],
5+
"y":[1,2,3,4],
6+
"x":[1,2,3,4],
7+
"type":"bar"
8+
}, {
9+
"width":[0.4,0.6,0.8,1],
10+
"y":[3,2,1,0],
11+
"x":[1,2,3,4],
12+
"type":"bar"
13+
}, {
14+
"width":1,
15+
"y":[-1,-3,-2,-4],
16+
"x":[1,2,3,4],
17+
"type":"bar"
18+
}, {
19+
"y":[0,-1,-3,-2],
20+
"x":[1,2,3,4],
21+
"type":"bar"
22+
}
23+
],
24+
"layout":{
25+
"xaxis": {"showgrid":true},
26+
"height":400,
27+
"width":400,
28+
"barmode":"relative",
29+
"barnorm":false
30+
}
31+
}

0 commit comments

Comments
 (0)