-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtimefatplot.html
More file actions
79 lines (65 loc) · 1.67 KB
/
timefatplot.html
File metadata and controls
79 lines (65 loc) · 1.67 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<!-- Load c3.css -->
<link href="c3.css" rel="stylesheet" type="text/css">
<!-- Load d3.js and c3.js -->
<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>
</body>
<script type="text/javascript">
var chart = c3.generate({
padding: {
top: 40,
right: 100,
bottom: 0,
left: 100,
},
data: {
x: 'Date',
xFormat: '%Y-%m-%d',
url: 'timefat.csv',
types:{
Events:'area-step',
},
colors: {
Events: '#E77FA5',
},
},
bar: {
width: {
ratio: 0.5
}
},
axis: {
x: {
type: 'timeseries',
tick: {
format: '%Y-%m-%d',
// count : 110,
// culling : {
// max: 110
// },
rotate: 75,
}
}
},
zoom: {
enabled: true,
rescale: true,
extent: [1, 1]
},
subchart: {
show: true,
size: {
height: 40
}
},
});
</script>
</html>