-
Notifications
You must be signed in to change notification settings - Fork 0
/
plot.html
70 lines (68 loc) · 1.18 KB
/
plot.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>PyG2Plot</title>
<script type="text/javascript" src="https://unpkg.com/@antv/g2plot@2"></script>
</head>
<body>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html, body, div.pyg2plot-plot-container {
height: 100%;
overflow: hidden;
}
</style>
<div id="b58bd3075ec74685bbc93981332b4ee3" class="pyg2plot-plot-container"></div>
<script>
var plot_b58bd3075ec74685bbc93981332b4ee3 = new G2Plot.Line("b58bd3075ec74685bbc93981332b4ee3", {
"height": 400,
"data": [
{
"year": "1991",
"value": 3
},
{
"year": "1992",
"value": 4
},
{
"year": "1993",
"value": 3.5
},
{
"year": "1994",
"value": 5
},
{
"year": "1995",
"value": 4.9
},
{
"year": "1996",
"value": 6
},
{
"year": "1997",
"value": 7
},
{
"year": "1998",
"value": 9
},
{
"year": "1999",
"value": 13
}
],
"xField": "year",
"yField": "value"
});
plot_b58bd3075ec74685bbc93981332b4ee3.render();
</script>
</body>
</html>