-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtry1.html
More file actions
52 lines (48 loc) · 950 Bytes
/
try1.html
File metadata and controls
52 lines (48 loc) · 950 Bytes
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link href="c3.css" rel="stylesheet" type="text/css">
<script src="https://d3js.org/d3.v3.min.js"></script>
<script src="c3.min.js"></script>
<title>Document</title>
</head>
<body>
<div id="chart"></div>
<script type="text/javascript">
var chart = c3.generate({
data: {
x: 'Year',
xFormat: '%Y',
url: 'Events-Year.csv',
types:{
Events: 'bar',
},
},
bar: {
width: {
ratio: 0.3
}
},
axis: {
x: {
type: 'timeseries',
tick: {
format: '%Y',
count: 25,
rotate: 75
}
}
},
zoom: {
enabled: true
},
subchart: {
show: true
},
colors: {
Pattern: ['#EEA9A9','#aec7e8']
},
});
</script>
</html>