-
Notifications
You must be signed in to change notification settings - Fork 0
/
graph_dict.py
77 lines (70 loc) · 3.96 KB
/
graph_dict.py
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
from altair_code.Altitude import *
from altair_code.Counts_per_researcher import *
from altair_code.Family_counts_per_year import *
from altair_code.time_spacial import *
from altair_code.Type_counts import *
from altair_code.custom_chart import custom_chart
def get_graph_dicts(app_version):
if app_version == 'reptiles':
#available graphs definition
# graphs available in the "time" section
graphs_time = dict()
graphs_time['collection Registers by Top 50 collectors'] = timeX_collectorY_top50
graphs_time['description Registers by Top 50 determiners'] = timeX_determinerY_top50
graphs_time['collection Registers by collector'] = timeX_collectorY
graphs_time['description Registers by determiner'] = timeX_determinerY
graphs_time['Registers by Families'] = timeX_family_countY
graphs_time['Registers Type by Family'] = timeX_family_countTypeY
graphs_time['Registers Type by Genus'] = timeX_genus_countTypeY
graphs_time['Registers Type by collector'] = timeX_collector_countTypeY
graphs_time['Registers by Order'] = timeX_order_countY
graphs_time['Registers by Type'] = timeX_countTypeY
graphs_time['Registers Family by continent'] = timeX_family_continentY
graphs_time['Registers Family by country'] = timeX_family_countryY
graphs_time['Registers Family by Brazilian States'] = timeX_family_statesY
graphs_time['custom chart'] = custom_chart
# graphs_time['seasonality'] = timeX_monthY
# graphs available in the "space" section
graphs_space = dict()
graphs_space['altitude per family'] = familyX_altitudeY
graphs_space['altitude per genus'] = genusX_altitudeY
elif app_version == 'crustaceas':
graphs_time = dict()
graphs_time['collection Registers by Top 50 collectors'] = timeX_collectorY_top50
graphs_time['description Registers by Top 50 determiners'] = timeX_determinerY_top50
graphs_time['collection Registers by collector'] = timeX_collectorY
graphs_time['description Registers by determiner'] = timeX_determinerY
graphs_time['Registers by Familiy'] = timeX_family_countY
graphs_time['Registers Type by Family'] = timeX_family_countTypeY
graphs_time['Registers Type by Genus'] = timeX_genus_countTypeY
graphs_time['Registers Type by collector'] = timeX_collector_countTypeY
graphs_time['Registers by Type'] = timeX_countTypeY
graphs_time['Registers by Infraorder'] = timeX_infraorder_countY
graphs_time['Registers Family by continent'] = timeX_family_continentY
graphs_time['Registers Family by country'] = timeX_family_countryY
graphs_time['Registers Family by Brazilian States'] = timeX_family_statesY
graphs_time['custom chart'] = custom_chart
# graphs_time['seasonality'] = timeX_monthY
# graphs available in the "space" section
graphs_space = dict()
graphs_space['depth per family'] = familyX_depthY
elif app_version == 'GBIF':
graphs_time = dict()
graphs_time['collection Registers by Top 50 collectors'] = timeX_collectorY_top50
graphs_time['description Registers by Top 50 determiners'] = timeX_determinerY_top50
graphs_time['collection Registers by collector'] = timeX_collectorY
graphs_time['description Registers by determiner'] = timeX_determinerY
graphs_time['Registers by Families'] = timeX_family_countY
graphs_time['Registers Type by Family'] = timeX_family_countTypeY
graphs_time['Registers Type by Genus'] = timeX_genus_countTypeY
graphs_time['Registers Type by collector'] = timeX_collector_countTypeY
graphs_time['Registers by Order'] = timeX_order_countY
graphs_time['Registers by Type'] = timeX_countTypeY
graphs_time['Registers Family by country'] = timeX_family_countryY
graphs_time['custom chart'] = custom_chart
# graphs_time['seasonality'] = timeX_monthY
# graphs available in the "space" section
graphs_space = dict()
graphs_space['altitude per family'] = familyX_altitudeY
graphs_space['altitude per genus'] = genusX_altitudeY
return graphs_time, graphs_space