Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 73f0365

Browse files
committed
3️⃣ multicategory mocks
1 parent 93323b8 commit 73f0365

File tree

5 files changed

+64
-0
lines changed

5 files changed

+64
-0
lines changed
-27 Bytes
Loading
24.4 KB
Loading
24.3 KB
Loading

test/image/mocks/multicategory.json

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"data": [
3+
{
4+
"type": "bar",
5+
"x": [
6+
["2017", "2017", "2017", "2017", "2018", "2018", "2018"],
7+
["q1", "q2", "q3", "q4", "q1", "q2", "q3" ]
8+
],
9+
"y": [1, 2, 3, 1, 3, 2, 3, 1]
10+
},
11+
{
12+
"type": "bar",
13+
"x": [
14+
["2017", "2017", "2017", "2017", "2018", "2018", "2018"],
15+
["q1", "q2", "q3", "q4", "q1", "q2", "q3"]
16+
],
17+
"y": [1.12, 2.15, 3.07, 1.48, 2.78, 1.95, 2.54, 0.64]
18+
}
19+
],
20+
"layout": {
21+
"xaxis": {
22+
"title": "MULTI-CATEGORY",
23+
"tickfont": {"size": 16},
24+
"ticks": "outside",
25+
"tickson": "boundaries"
26+
}
27+
}
28+
}

test/image/mocks/multicategory2.json

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"data": [
3+
{
4+
"mode": "markers",
5+
"marker": {
6+
"symbol": "square"
7+
},
8+
"x": [
9+
["2017", "2017", "2017", "2017", "2018", "2018", "2018"],
10+
["q1", "looooooooooooooooong", "q3", "q4", "q1", "q2", "q3"]
11+
],
12+
"y": [1, 2, 3, 1, 3, 2, 3, 1]
13+
},
14+
{
15+
"mode": "markers",
16+
"marker": {
17+
"symbol": "square"
18+
},
19+
"x": [
20+
["2017", "2017", "2017", "2017", "2018", "2018", "2018"],
21+
["q1", "looooooooooooooooong", "q3", "q4", "q1", "q2", "q3"]
22+
],
23+
"y": [0.63, 2.17, 3.11, 1.07, 3.08, 1.94, 2.55, 0.59]
24+
}
25+
],
26+
"layout": {
27+
"xaxis": {
28+
"title": "MULTI-CATEGORY ON TOP",
29+
"side": "top"
30+
},
31+
"showlegend": false,
32+
"width": 400,
33+
"height": 800,
34+
"margin": {"b": 40, "t": 200}
35+
}
36+
}

0 commit comments

Comments
 (0)