Skip to content

Commit b53aa49

Browse files
Added baselines for images and annotations
with numeric string categories.
1 parent e8277a9 commit b53aa49

6 files changed

+143
-0
lines changed
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
{
2+
"data":[{
3+
"x": ["3", "1", "5", "2", "4", "6"],
4+
"y": ["6","7","8","2","3","4"]
5+
}],
6+
"layout":{
7+
"xaxis": {
8+
"type": "category",
9+
"categoryarray": ["1", "2", "3", "4", "5", "6"]
10+
},
11+
"yaxis": {
12+
"type": "category"
13+
},
14+
"annotations": [
15+
{
16+
"text": "A",
17+
"x": "2",
18+
"y": 3.5
19+
},
20+
{
21+
"text": "B",
22+
"x": 0.5,
23+
"y": "3"
24+
},
25+
{
26+
"text": "C",
27+
"x": 2,
28+
"y": "0"
29+
},
30+
{
31+
"text": "D",
32+
"x": "7",
33+
"y": 3
34+
}
35+
],
36+
"shapes": [
37+
{
38+
"type": "line",
39+
"x0": 0.5,
40+
"x1": 0.5,
41+
"y0": 0,
42+
"y1": 1,
43+
"xref": "x domain",
44+
"yref": "y domain"
45+
},
46+
{
47+
"type": "line",
48+
"y0": 0.5,
49+
"y1": 0.5,
50+
"x0": 0,
51+
"x1": 1,
52+
"xref": "x domain",
53+
"yref": "y domain"
54+
}
55+
]
56+
}
57+
}
Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
{
2+
"data":[{
3+
"x": ["3", "1", "5", "2", "4", "6"],
4+
"y": ["6","7","8","2","3","4"]
5+
}],
6+
"layout":{
7+
"xaxis": {
8+
"type": "category",
9+
"categoryarray": ["1", "2", "3", "4", "5", "6"]
10+
},
11+
"yaxis": {
12+
"type": "category"
13+
},
14+
"images": [
15+
{
16+
"source": "https://images.plot.ly/language-icons/api-home/js-logo.png",
17+
"xref": "x",
18+
"yref": "y",
19+
"sizex": 1,
20+
"sizey": 1,
21+
"x": "2",
22+
"y": 3.5,
23+
"xanchor": "left",
24+
"yanchor": "top",
25+
"opacity": 0.4
26+
},
27+
{
28+
"source": "https://images.plot.ly/language-icons/api-home/js-logo.png",
29+
"xref": "x",
30+
"yref": "y",
31+
"sizex": 1,
32+
"sizey": 1,
33+
"x": 0.5,
34+
"y": "3",
35+
"xanchor": "left",
36+
"yanchor": "top",
37+
"opacity": 0.6
38+
},
39+
{
40+
"source": "https://images.plot.ly/language-icons/api-home/js-logo.png",
41+
"xref": "x",
42+
"yref": "y",
43+
"sizex": 1,
44+
"sizey": 1,
45+
"x": 2,
46+
"y": "0",
47+
"xanchor": "left",
48+
"yanchor": "top",
49+
"opacity": 0.8
50+
51+
},
52+
{"source": "https://images.plot.ly/language-icons/api-home/js-logo.png",
53+
"xref": "x",
54+
"yref": "y",
55+
"sizex": 1,
56+
"sizey": 1,
57+
"x": "7",
58+
"y": 3,
59+
"xanchor": "left",
60+
"yanchor": "top",
61+
"opacity": 1
62+
63+
}
64+
],
65+
"shapes": [
66+
{
67+
"type": "line",
68+
"x0": 0.5,
69+
"x1": 0.5,
70+
"y0": 0,
71+
"y1": 1,
72+
"xref": "x domain",
73+
"yref": "y domain"
74+
},
75+
{
76+
"type": "line",
77+
"y0": 0.5,
78+
"y1": 0.5,
79+
"x0": 0,
80+
"x1": 1,
81+
"xref": "x domain",
82+
"yref": "y domain"
83+
}
84+
]
85+
}
86+
}

0 commit comments

Comments
 (0)