forked from adamlaska/datatracker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsettings.py
More file actions
97 lines (95 loc) · 2.31 KB
/
settings.py
File metadata and controls
97 lines (95 loc) · 2.31 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
CHART_TYPE_COLUMN_OPTIONS = {
"chart": {
"type": 'column',
},
"credits": {
"enabled": False,
},
"exporting": {
"fallbackToExportServer": False,
},
"rangeSelector" : {
"selected": 5,
"allButtonsEnabled": True,
},
"series" : [{
"name" : "Items",
"type" : "column",
"data" : [],
"dataGrouping": {
"units": [[
'week', # unit name
[1,], # allowed multiples
], [
'month',
[1, 4,],
]]
},
"turboThreshold": 1, # Only check format of first data point. All others are the same
"pointIntervalUnit": 'day',
"pointPadding": 0.05,
}],
"title" : {
"text" : "Items over time"
},
"xAxis": {
"type": "datetime",
# This makes the axis use the given coordinates, rather than
# squashing them to equidistant columns
"ordinal": False,
},
}
CHART_TYPE_ACTIVITY_OPTIONS = {
"chart": {
"type": 'column',
},
"credits": {
"enabled": False,
},
"exporting": {
"fallbackToExportServer": False,
},
"navigation": {
"buttonOptions": {
"enabled": False,
}
},
"navigator": {
"enabled": False,
},
"rangeSelector" : {
"enabled": False,
},
"scrollbar": {
"enabled": False,
},
"series" : [{
"name" : None,
"animation": False,
"type" : "column",
"data" : [],
"dataGrouping": {
"units": [[
'year', # unit name
[1,], # allowed multiples
]]
},
"turboThreshold": 1, # Only check format of first data point. All others are the same
"pointIntervalUnit": 'day',
"pointPadding": -0.2,
}],
"title" : {
"text" : None,
},
"xAxis": {
"type": "datetime",
# This makes the axis use the given coordinates, rather than
# squashing them to equidistant columns
"ordinal": False,
},
"yAxis": {
"labels": {
"enabled": False,
}
},
}