-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwipBubbleParams.js
55 lines (55 loc) · 1.83 KB
/
wipBubbleParams.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
var BUBBLE_PARAMETERS = {
"data_file": "cleanWipData.csv",
"report_title": "Quant projects breakdown (last 3yrs)",
"footer_text": "Analysis based on quant wip from connect (as at Jan 17); na's removed.",
"width": 1200,
"height": 1000,
"force_strength": 0.03,
"force_type": "charge",
"radius_field": "Quant Budget",
"numeric_fields": ["Quant Budget"],
"fill_color": {
"data_field": "Project Type",
"color_groups": {
// Use viridis palette
"ALM": "#440154FF",
"LDI": "#414487FF",
"Structure": "#2A788EFF",
"Cashflows": "#22A884FF",
"3DA": "#7AD151FF",
"Other": "#FDE725FF"
}
},
"tooltip": [
{"title": "CMS code", "data_field": "CMS Code"},
{"title": "Project type", "data_field": "Project Type"},
{"title": "Quant budget", "data_field": "Quant Budget", "format_string": ",.2r"},
{"title": "Date", "data_field": "proj date"}
],
"modes": [
{
"button_text": "All Projects",
"button_id": "all",
"type": "grid",
"labels": null,
"grid_dimensions": {"rows": 1, "columns": 1},
"data_field": null
},
{
"button_text": "Projects by Type",
"button_id": "projType",
"type": "grid",
"labels": ["ALM", "LDI", "Structure", "Cashflows", "3DA", "Other"],
"grid_dimensions": {"rows": 3, "columns": 2},
"data_field": "Project Type"
},
{
"button_text": "Projects by year",
"button_id": "projYear",
"type": "grid",
"labels": ["In 2014", "In 2015", "In 2016"],
"grid_dimensions": {"rows": 1, "columns": 3},
"data_field": "proj year"
}
]
};