Skip to content

Commit 95beb1b

Browse files
committed
add shape to scattergl
1 parent df4017a commit 95beb1b

File tree

2 files changed

+78
-34
lines changed

2 files changed

+78
-34
lines changed
9.04 KB
Loading

test/image/mocks/gl2d_shape_line.json

+78-34
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,94 @@
11
{
2-
"data": [
2+
"data": [
33
{
4-
"x": [1, 2, 3, 4, 5 , 6 , 7 ],
5-
"y": [1, 3, 2, 4,null, 1 , 4 ],
6-
"mode": "lines+markers",
7-
"name": "linear",
8-
"line": {"shape": "linear"},
4+
"x": [10,11, 12, 13, 14, 15 ,null, 16 , 17 , 18 , 19 ],
5+
"y": [null,26, 28, 27, 29,null,null, 26, 30, 30 , null ],
6+
"mode": "lines+markers","fill":"tozeroy",
7+
"name": "hv",
8+
"line": {"shape": "hv"},
99
"type": "scattergl"
1010
},{
11-
"x": [1, 2, 3, 4, 5 , 6 , 7 ],
12-
"y": [6, 8, 7, 9,null, 6, 9 ],
13-
"mode": "lines+markers",
14-
"name": "spline",
15-
"line": {"shape": "spline","smoothing":4},
11+
"x": [10,11, 12, 13, 14, 15 ,null, 16 , 17 , 18 , 19 ],
12+
"y": [null,21, 23, 22, 24,null,null, 21, 25 , 25 , null ],
13+
"mode": "lines+markers","fill":"tozeroy",
14+
"name": "vh",
15+
"line": {"shape": "vh"},
1616
"type": "scattergl"
1717
},{
18-
"x": [1, 2, 3, 4, 5 , 6 , 7 ],
19-
"y": [11, 13, 12, 14,null, 11, 14 ],
20-
"mode": "lines+markers",
21-
"name": "vhv",
22-
"line": {"shape": "vhv"},
18+
"x": [10,11, 12, 13, 14, 15 , null , 16 , 17 , 18 , 19 ],
19+
"y": [null,16, 18, 17, 19,null,null , 16, 20 , 20 , null ],
20+
"mode": "lines+markers","fill":"tozeroy",
21+
"name": "hvh",
22+
"line": {"shape": "hvh"},
23+
"type": "scattergl"
24+
},
25+
{
26+
"x": [10,11, 12, 13, 14, 15 ,null, 16 , 17 , 18 , 19 ],
27+
"y": [null,11, 13, 12, 14,null,null, 11, 15 , 15 , null ],
28+
"mode": "lines+markers","fill":"tozeroy",
29+
"name": "vhv",
30+
"line": {"shape": "vhv"},
31+
"type": "scattergl"
32+
},
33+
{
34+
"x": [10,11, 12, 13, 14, 15 ,null, 16 , 17 , 18 , 19 ],
35+
"y": [null,6, 8, 7, 9,null, null, 6, 10 , 10 , null ],
36+
"mode": "lines+markers","fill":"tozeroy",
37+
"name": "spline",
38+
"line": {"shape": "spline","smoothing":4},
39+
"type": "scattergl"
40+
},
41+
{
42+
"x": [10,11, 12, 13, 14, 15 , 16 , 17 , 18 , 19 ],
43+
"y": [null,1, 3, 2, 4,null, 1 , 5 , 5 , null ],
44+
"mode": "lines+markers","fill":"tozeroy",
45+
"name": "linear",
46+
"line": {"shape": "linear"},
47+
"type": "scattergl"
48+
},{
49+
"x": [1, 2, 3, 4, 5 , 6 , 7 , 8 , 9 ],
50+
"y": [26, 28, 27, 29,null, 26, 30, 30 , null ],
51+
"mode": "lines+markers",
52+
"name": "hv",
53+
"line": {"shape": "hv"},
54+
"type": "scattergl"
55+
},{
56+
"x": [1, 2, 3, 4, 5 , 6 , 7 , 8 , 9 ],
57+
"y": [21, 23, 22, 24,null, 21, 25 , 25 , null ],
58+
"mode": "lines+markers",
59+
"name": "vh",
60+
"line": {"shape": "vh"},
61+
"type": "scattergl"
62+
},{
63+
"x": [1, 2, 3, 4, 5 , 6 , 7 , 8 , 9 ],
64+
"y": [16, 18, 17, 19,null, 16, 20 , 20 , null ],
65+
"mode": "lines+markers",
66+
"name": "hvh",
67+
"line": {"shape": "hvh"},
2368
"type": "scattergl"
2469
},{
25-
"x": [1, 2, 3, 4, 5 , 6 , 7 ],
26-
"y": [16, 18, 17, 19,null, 16, 19 ],
27-
"mode": "lines+markers",
28-
"name": "hvh",
29-
"line": {"shape": "hvh"},
70+
"x": [1, 2, 3, 4, 5 , 6 , 7 , 8 , 9 ],
71+
"y": [11, 13, 12, 14,null, 11, 15 , 15 , null ],
72+
"mode": "lines+markers",
73+
"name": "vhv",
74+
"line": {"shape": "vhv"},
3075
"type": "scattergl"
3176
},{
32-
"x": [1, 2, 3, 4, 5 , 6 , 7 ],
33-
"y": [21, 23, 22, 24,null, 21, 24 ],
34-
"mode": "lines+markers",
35-
"name": "vh",
36-
"line": {"shape": "vh"},
77+
"x": [1, 2, 3, 4, 5 , 6 , 7 , 8 , 9 ],
78+
"y": [6, 8, 7, 9,null, 6, 10 , 10 , null ],
79+
"mode": "lines+markers",
80+
"name": "spline",
81+
"line": {"shape": "spline","smoothing":4},
3782
"type": "scattergl"
3883
},{
39-
"x": [1, 2, 3, 4, 5 , 6 , 7 ],
40-
"y": [26, 28, 27, 29,null, 26, 29 ],
41-
"mode": "lines+markers",
42-
"name": "hv",
43-
"line": {"shape": "hv"},
84+
"x": [1, 2, 3, 4, 5 , 6 , 7 , 8 , 9 ],
85+
"y": [1, 3, 2, 4,null, 1 , 5 , 5 , null ],
86+
"mode": "lines+markers",
87+
"name": "linear",
88+
"line": {"shape": "linear"},
4489
"type": "scattergl"
4590
}
46-
],
91+
],
4792
"layout": {
4893
"margin": {
4994
"b": 100,
@@ -57,7 +102,6 @@
57102
"yaxis": {
58103
"title": "y1"
59104
},
60-
"dragmode": "zoom",
61-
"legend": { "traceorder": "reversed" }
105+
"dragmode": "zoom"
62106
}
63107
}

0 commit comments

Comments
 (0)