-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdata.js
67 lines (61 loc) · 1.52 KB
/
data.js
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
/**
* Data for Charts.js.
*
* Note that this is a work in progress.
* Data format will likely need to be changed.
*/
/**
* Team capacity.
* Horizontal line indicating team capacity.
*/
var team_capacity = 100;
/**
* Max value (the "roof") of the chart.
* @todo: This may need to be dynamic later on.
*/
var chart_max = 300;
/**
* Data format:
* {fixed data key} = [
* {comma separated list of monthly data points, starting with current month -1}
* ]
*
* Notes:
* - Current data display starts with current month minus 1 with its label hidden,
* then current month as the first "visible" x-value.
* - All data points may not be shown. Currently only the first 6 points are used.
*/
var data_growth = {
//> Current month, first visible. (After)
pm: [ // //> Before Carv.
30, 20, 10, 30, 20, 20, 25, 30, 25, 18, 20, 23
],
design: [
55, 40, 35, 25, 25, 45, 55, 60, 30, 52, 58, 65
],
engineering: [
45, 30, 20, 65, 55, 10, 45, 20, 20, 38, 43, 47
],
closed: [
25, 10, 10, 45, 10, 45, 30, 10, 10, 90, 78, 100
]
};
var data_maintaining = {
pm: [ // //> After Carv.
20, 20, 25, 25, 32, 30, 35, 30, 35, 18, 20, 23
],
design: [
45, 40, 35, 40, 35, 47, 52, 57, 65, 52, 58, 65
],
engineering: [
37, 45, 40, 35, 40, 42, 45, 55, 65, 38, 43, 47
],
closed: [
0, 5, 6, 8, 10, 20, 25, 40, 60, 90, 78, 100
]
};
/**
* Legacy var.
* Avoid braking the old script.
*/
var chart_data = data_growth;