-
Notifications
You must be signed in to change notification settings - Fork 0
/
summary_graph.html
138 lines (130 loc) · 6.04 KB
/
summary_graph.html
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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
<!DOCTYPE html>
<html lang="en">
<head>
<title>CFDE Summary Graph</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta charset="UTF-8">
<link rel="stylesheet" href="./css/components/normalize.css" type="text/css">
<link rel="stylesheet" href="./css/components/bootstrap.min.css" type="text/css">
<link rel="shortcut icon" type="image/png" href="./images/icons/CFDE-icon-1.png?v=2"/>
<link rel="stylesheet" href="./css/fonts.css" type="text/css"/>
<link rel="stylesheet" href="./css/style.css" type="text/css"/>
<link rel="stylesheet" href="./css/summary_graph.css" type="text/css"/>
</head>
<body>
<main class="main">
<div class="content">
<div class="content__right">
<div class="data_header snapshot">
<p id="summary_view_title" class="snapshot_head">Summary View</p>
<p id="sbc1-last_updated" class="last-updated"></p>
<p id="sbc1-export" class="export"><a href="javascript: export_chart_data('sbc1')"><img src='images/download_button.png' style='width: 125px; height: 32px;' title='Export chart'></a></p>
</div>
<div class="data_content">
<div id="chart-container">
<div id="chart-inner-container">
<svg id="sbc1"></svg>
</div>
</div>
<div id="sbc1-group-by-and-legend-container" style="display: none;">
<div id="sbc1-group-by-container">
<label for="group-by" class="form-label">Color key:</label>
<select class="custom-select" id="sbc1-group-by" name="groupby" style="display: none;">
<option value="anatomy">Anatomy</option>
<option selected value="assay_type">Assay</option>
<option value="dcc">CF Program</option>
<option value="data_type">Data Type</option>
<option value="disease">Disease</option>
<option value="ethnicity">Ethnicity</option>
<option value="race">Race</option>
<option value="sex">Sex</option>
<option value="species">Species</option>
</select>
</div>
<div id="sbc1_container"></div>
</div>
<div id="form-controls">
<form>
<div class="container">
<div id="sbc1-form-row" class="row" style="flex-wrap: nowrap;">
<div class="col-md-4" id="sbc1-y-axis-container">
<label for="y-axis" class="form-label">Y-axis</label>
<select class="custom-select" id="sbc1-y-axis" name="y-axis">
<option value="volume">Data volume</option>
<option value="collections">Collection count</option>
<option value="files">File count</option>
<option value="samples">Sample count</option>
<option selected value="subjects">Subject count</option>
</select>
</div>
<div class="col-md-4" id="sbc1-x-axis-container">
<label for="x-axis" class="form-label">X-axis</label>
<select class="custom-select" id="sbc1-x-axis" name="x-axis">
<option value="anatomy">Anatomy</option>
<option value="assay_type">Assay</option>
<option value="dcc">CF Program</option>
<option selected value="data_type">Data Type</option>
<option value="disease">Disease</option>
<option value="ethnicity">Ethnicity</option>
<option value="race">Race</option>
<option value="sex">Sex</option>
<option value="species">Species</option>
</select>
</div>
<div class="col-md-4" id="sbc1-scale-container">
<label for="scale" class="form-label">Scale</label>
<select class="custom-select" id="sbc1-scale" name="scale">
<option value="Linear">Linear</option>
<option selected value="log">Logarithmic</option>
</select>
</div>
</div>
</div>
</form>
</div>
</div> <!--end data_content-->
</div> <!--end content__right-->
</div>
<div id="export-modal" class="modal">
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content">
<div class="modal-header">
<h5>Choose how you wish to export this chart</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<div class="row justify-content-center export-row">
<button id="export-png" type="button" class="btn btn-primary">Export as PNG</button>
</div>
<div class="row justify-content-center export-row">
<button id="export-svg" type="button" class="btn btn-primary">Export as SVG</button>
</div>
<div class="row justify-content-center export-row">
<button id="export-csv" type="button" class="btn btn-primary">Export data as CSV</button>
</div>
</div>
</div>
</div>
</div>
</main>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-168435864-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-168435864-1');
</script>
<script src="js/components/jquery-3.5.1.min.js?ts=1616433204"></script>
<script src="js/components/bootstrap-4.5.0.min.js?ts=1616433204"></script>
<script src="js/components/d3-5.16.0.min.js?ts=1616433204"></script>
<script src="js/components/saveSvgAsPng.js?ts=1604093612"></script>
<script src="js/components/d3-save-svg.min.js?ts=1604093612"></script>
<script src="js/stacked-bar-graph.js?ts=1676582078"></script>
<script src="js/lz-string.min.js?ts=1607186913"></script>
<script src="js/config.js?ts=1619458908"></script>
<script src="js/summary_graph.js?ts=1676582078"></script>
</body>
</html>