-
Notifications
You must be signed in to change notification settings - Fork 1
/
drtools-namespace-coupling.html
179 lines (161 loc) · 6.11 KB
/
drtools-namespace-coupling.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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
<!DOCTYPE html>
<html>
<head>
<title>:: drtools-metric-visualization ::</title>
<meta charset="utf-8">
<!-- Load d3.js -->
<script type="text/javascript" src="./js/drtools/loader.js"></script>
<script src="./js/drtools/jquery.min.js"></script>
<script src="./js/drtools/jquery.csv.min.js"></script>
<script src="./drtools-properties.js"></script>
<link href="https://fonts.googleapis.com/css?family=Poppins:100,200,300,400,500,600,700,800,900" rel="stylesheet">
<link rel="stylesheet" href="css/open-iconic-bootstrap.min.css">
<link rel="stylesheet" href="css/animate.css">
<link rel="stylesheet" href="css/owl.carousel.min.css">
<link rel="stylesheet" href="css/owl.theme.default.min.css">
<link rel="stylesheet" href="css/magnific-popup.css">
<link rel="stylesheet" href="css/aos.css">
<link rel="stylesheet" href="css/ionicons.min.css">
<link rel="stylesheet" href="css/flaticon.css">
<link rel="stylesheet" href="css/icomoon.css">
<link rel="stylesheet" href="css/style.css">
<style>
.text_table {
font-family: 'Poppins', Arial, sans-serif;
font-size: 13px;
line-height: 1.8;
font-weight: 400;
color: #000;
}
</style>
</head>
<body class="text-center">
<section class="ftco-section" id="header-section">
<div class="col-md-12 text-center heading-section ftco-animate">
<h2 class="mb-4"><script>document.write(graphTitles.titleNamespaceCoupling)</script></h2>
<script>document.write(graphTitles.titleNamespaceCouplingExplanation)</script>
</div>
<div class="col-md-12 text-center heading-section ftco-animate">
Project: <script>document.write(optionsProject.projectName)</script>
</div>
<div class="nav-item text-center cta mr-md-2">
<a href="index.html" class="nav-link"><span>Back</span></a>
</div>
<div class="text">
<strong class="text-error"><div id="errorMessage"></div></strong>
</div>
</section>
<section class="ftco-section" id="graph-section">
<div class="text">
<table>
<tr>
<td><div class="mr-sm-2" id="filterCA" style="padding-left: 100px"></div></td>
<td><div class="mr-sm-2" id="filterCE"></div></td>
</tr>
</table>
<div id="chart_div"></div>
<div id="dashboard_div"></div>
</div>
</section>
<section class="ftco-section" id="namespace-coupling-section">
<div class="col-md-12 text-center heading-section ftco-animate">
<b>NAMESPACE COUPLING THRESHOLDS</b>
</div>
<div>
<table class="table table-hover text_table">
<thead>
<tr>
<th scope="col">Acronym</th>
<th scope="col">Name</th>
<th scope="col">Description</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">CA</th>
<td>Afferent Coupling</td>
<td>Good: <= 7; Regular: between 7 and 39; Bad: > 39</td>
</tr>
<tr>
<th scope="row">CE</th>
<td>Efferent Coupling</td>
<td>Good: <= 6; Regular: between 6 and 16; Bad: > 16</td>
</tr>
<tr>
</tbody>
</table>
</div>
</section>
<script src="js/jquery-migrate-3.0.1.min.js"></script>
<script src="js/popper.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/jquery.easing.1.3.js"></script>
<script src="js/jquery.waypoints.min.js"></script>
<script src="js/jquery.stellar.min.js"></script>
<script src="js/owl.carousel.min.js"></script>
<script src="js/jquery.magnific-popup.min.js"></script>
<script src="js/aos.js"></script>
<script src="js/jquery.animateNumber.min.js"></script>
<script src="js/scrollax.min.js"></script>
<script src="js/main.js"></script>
<script src="js/drtools/drtools-utils.js"></script>
<script type="text/javascript">
if (!optionsProject.datasetNamespaceCoupling || 0 === optionsProject.datasetNamespaceCoupling.length === ''
|| !doesFileExist(optionsProject.datasetNamespaceCoupling)) {
$("#errorMessage").text(errorMessage.msgNamespaceCoupling)
}
else {
google.charts.load('current', {'packages':['corechart', 'controls']});
google.charts.setOnLoadCallback(drawBar);
function drawBar() {
var dashboard = new google.visualization.Dashboard(
document.getElementById('dashboard_div'));
$.get(optionsProject.datasetNamespaceCoupling, function(csvString) {
var arrayData = $.csv.toArrays(csvString, {onParseValue: $.csv.hooks.castToScalar});
var data = new google.visualization.arrayToDataTable(arrayData);
var dataView = new google.visualization.DataView(data);
dataView.setColumns([0, 1, 2]);
var sliderCA = new google.visualization.ControlWrapper({
'controlType': 'NumberRangeFilter',
'containerId': 'filterCA',
'options': {
'filterColumnIndex': 1,
'ui': {
'labelStacking': 'horizontal',
'label': 'Afferent Coupling (CA)'
}
}
});
var sliderCE = new google.visualization.ControlWrapper({
'controlType': 'NumberRangeFilter',
'containerId': 'filterCE',
'options': {
'filterColumnIndex': 2,
'ui': {
'labelStacking': 'horizontal',
'label': 'Efferent Coupling (CE)'
}
}
});
var barChart = new google.visualization.ChartWrapper({
'chartType': 'BarChart',
'containerId': 'chart_div',
'options': {
'width': 1300,
'height': 600,
'chartArea':{'width':'80%','height':'90%'},
'legend': { 'position': 'top', 'maxLines': 2 },
'bar': { 'groupWidth': '75%' },
'fontName': 'Poppins',
'bars': 'horizontal'
},
'view': {'columns': [0, 1, 2]}
});
dashboard.bind([sliderCA, sliderCE], [barChart]);
dashboard.draw(data);
});
};
}
</script>
</body>
</html>