-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
80 lines (70 loc) · 1.89 KB
/
index.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
71
72
73
74
75
76
77
78
79
80
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="./krap.js">
</script>
<link rel="stylesheet" href="./krap.css">
</head>
<body>
<div id="pie" width="600px" >
</div>
<div id="bar" >
</div>
<div id="bar2" >
</div>
<script>
var json =[
{oracle:[
{profits:[
{phones:1},
{software:2}
]},
{loss:[3]},
{misc:[6]},
]},
{amazon:[10]},
{google:[60]},
{microsoft:[20]}
];
properties = {}
properties['width'] = 300;
properties['height']=300;
properties['data']= [10,30,60]
properties['colours']= ['#38D3EE', '#C9D2D4', '#FF5A82'];
chart.pie('pie',properties);
//axis.generateSimpleAxis('pie',0,0,400,400)
var props = {
'width': 300,
'height': 300,
'data': {'apple':5,'oracle':10,'google':15,'tesla':20,'A':15,'B':10,'C':5},
'xCords': [],
'yCords': [],
'yCordsSorted': [],
'divId': 'undefined',
'datumsPerScreen': 4,
'colours': {},
'barColours': 'blue',
'yTickLabels': {},
'svgObj': 'undefined',
'axisType': 'generateSimpleAxis'
};
var props2 = {
'width': 300,
'height': 300,
'data': {'apple':2,'oracle':1,'google':15,'tesla':16,'apple':5,'oracle':10,'google':15,'tesla':20,'A':15,'B':10,'C':5},
'xCords': [],
'yCords': [],
'yCordsSorted': [],
'divId': 'undefined',
'datumsPerScreen': 4,
'colours': {},
'barColours': 'blue',
'yTickLabels': {},
'svgObj': 'undefined',
'axisType': 'generateSimpleAxis'
};
chart.bar('bar',props);
chart.bar('bar2',props2);
</script>
</body>
</html>