-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDetails.js
More file actions
32 lines (29 loc) · 731 Bytes
/
Details.js
File metadata and controls
32 lines (29 loc) · 731 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
var genderData = [
{
value: 20,
color:"#B4D8E7"
},
{
value : 80,
color : "#FFAEAE"
}
];
var waitData = {
labels : ["8pm","9pm","10pm","11pm","12am"],
datasets : [
{
fillColor : "rgba(151,187,205,0.5)",
strokeColor : "rgba(151,187,205,1)",
pointColor : "rgba(151,187,205,1)",
pointStrokeColor : "#fff",
pointStrokeColor : "#fff",
data : [5, 10, 50, 40, 10]
}
]
}
$(document).ready(function(){
var genderCtx = document.getElementById("gender_ratio").getContext("2d");
var genderChart = new Chart(genderCtx).Doughnut(genderData, {animationSteps:70});
var waitCtx = document.getElementById("wait").getContext("2d");
var waitChart = new Chart(waitCtx).Line(waitData, {animationSteps:70});
});