forked from pubnub/pubnub-galileo-xyz
-
Notifications
You must be signed in to change notification settings - Fork 0
/
chart.html
54 lines (49 loc) · 1.01 KB
/
chart.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
<html>
<head>
<script type="text/javascript" src="http://pubnub.github.io/eon/lib/eon.js"></script>
<link type="text/css" rel="stylesheet" href="http://pubnub.github.io/eon/lib/eon.css" />
<style>
.c3-region-1 {
fill: #dd3333;
fill-opacity: 0.8
}
</style>
</head>
<body>
<div id="chart"></div>
<div id="chart2"></div>
<script>
var channel = "pubnub-intel-gal-demo-xyz";
eon.chart({
channel: channel,
generate: {
bindto: '#chart',
data: {
labels: true,
type: 'bar'
},
bar: {
width: {
ratio: 0.5
}
},
tooltip: {
show: false
}
}
});
eon.chart({
channel: channel,
flow: {
duration: 100
},
generate: {
bindto: '#chart2',
data: {
labels: false
}
}
});
</script>
</body>
</html>