-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathstatistics.html
More file actions
198 lines (180 loc) · 10.1 KB
/
Copy pathstatistics.html
File metadata and controls
198 lines (180 loc) · 10.1 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
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
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Dataset Statistics</title>
<meta name="description" content="Summary statistics for Hypergraphx-data datasets by network type and domain.">
<meta property="og:title" content="Hypergraphx-data · Statistics">
<meta property="og:description" content="Summary statistics for Hypergraphx-data datasets by network type and domain.">
<meta property="og:type" content="website">
<meta property="og:image" content="static/images/logo_cropped-removedbg.png">
<link rel="icon" type="image/png" href="static/images/logo_cropped-removedbg.png">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&display=swap" rel="stylesheet">
<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" href="static/css/styles.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
</head>
<body>
<!-- Navbar -->
<a class="skip-link" href="#mainContent">Skip to content</a>
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
<div class="container-fluid">
<a class="navbar-brand" href="index.html">
<img src="static/images/logo_cropped-removedbg-whitegraph.png" alt="HGX Logo" width="30" height="30" class="d-inline-block align-text-center">
Hypergraphx-data
</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav ms-auto">
<li class="nav-item">
<a class="nav-link" href="index.html"><i class="fa-solid fa-house"></i> Home</a>
</li>
<li class="nav-item">
<a class="nav-link active" aria-current="page" href="statistics.html"><i class="fa-solid fa-database"></i> Statistics</a>
</li>
<li class="nav-item">
<a class="nav-link" href="about.html"><i class="fa-solid fa-address-card"></i> About</a>
</li>
<li class="nav-item dropdown">
<a class="nav-link nav-link-muted dropdown-toggle" href="#" id="resourcesDropdown" role="button" data-bs-toggle="dropdown" aria-expanded="false">
<i class="fa-solid fa-link"></i> Resources
</a>
<ul class="dropdown-menu dropdown-menu-end" aria-labelledby="resourcesDropdown">
<li><a class="dropdown-item" href="https://github.com/HGX-Team/hypergraphx/tree/main/tutorials" target="_blank" rel="noopener noreferrer">Tutorials <i class="fa-solid fa-arrow-up-right-from-square ms-1"></i></a></li>
<li><a class="dropdown-item" href="https://github.com/pszufe/HIF-standard" target="_blank" rel="noopener noreferrer">HIF <i class="fa-solid fa-arrow-up-right-from-square ms-1"></i></a></li>
<li><a class="dropdown-item" href="https://github.com/HGX-Team/hypergraphx" target="_blank" rel="noopener noreferrer">GitHub <i class="fa-solid fa-arrow-up-right-from-square ms-1"></i></a></li>
<li><a class="dropdown-item" href="https://hypergraphx.readthedocs.io/en/latest/" target="_blank" rel="noopener noreferrer">Docs <i class="fa-solid fa-arrow-up-right-from-square ms-1"></i></a></li>
</ul>
</li>
</ul>
</div>
</div>
</nav>
<!-- Page Header -->
<main id="mainContent">
<div class="container mt-4">
<div class="text-center">
<img src="static/images/logo.png" alt="Hypergraphx-data" class="page-logo">
</div>
<nav aria-label="breadcrumb" class="breadcrumb-container">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index.html">Datasets</a></li>
<li class="breadcrumb-item active" aria-current="page">Statistics</li>
</ol>
</nav>
<div class="stats-hero">
<h1>Dataset Statistics</h1>
<p>An overview of dataset distributions by network type and domain.</p>
</div>
<div class="stats-inline">
<div class="stats-inline-item">
<span class="stats-inline-label"><i class="fa-solid fa-layer-group section-title-icon"></i> Datasets</span>
<span class="stats-inline-value" id="statsTotalDatasets">—</span>
</div>
<div class="stats-inline-item">
<span class="stats-inline-label"><i class="fa-solid fa-diagram-project section-title-icon"></i> Domains</span>
<span class="stats-inline-value" id="statsTotalDomains">—</span>
</div>
<div class="stats-inline-item">
<span class="stats-inline-label"><i class="fa-solid fa-network-wired section-title-icon"></i> Network types</span>
<span class="stats-inline-value" id="statsTotalTypes">—</span>
</div>
</div>
<!-- Chart for Network Type Distribution -->
<div class="chart-container chart-panel">
<h4><i class="fa-solid fa-network-wired section-title-icon"></i> Network type distribution</h4>
<canvas id="networkTypeChart"></canvas>
</div>
<!-- Chart for Domain Distribution -->
<div class="chart-container chart-panel">
<h4><i class="fa-solid fa-diagram-project section-title-icon"></i> Domain distribution</h4>
<canvas id="domainChart"></canvas>
</div>
<!-- Back to Home Link -->
<div class="text-center mt-3">
<a href="index.html" class="back-link"><i class="fa-solid fa-arrow-left"></i> Back to Data Repository</a>
</div>
<!--Small whitespace-->
<div style="height: 40px;"></div>
</div>
</main>
<!-- Footer -->
<button class="back-to-top" id="backToTop" type="button" aria-label="Back to top">
<i class="fa-solid fa-arrow-up"></i>
</button>
<footer class="footer-custom bg-dark text-white py-3">
<div class="container text-center">
<div>Hypergraphx-data: a repository of higher-order network datasets · © <span id="footerYear">2026</span></div>
</div>
</footer>
<script>
const footerYear = document.getElementById('footerYear');
if (footerYear) footerYear.textContent = new Date().getFullYear();
</script>
<!-- JavaScript & Chart.js -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/js/bootstrap.bundle.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<script defer src="static/js/back-to-top.js"></script>
<script>
const networkTypes = [{"name": "Undirected", "count": 123}, {"name": "Temporal", "count": 25}, {"name": "Weighted", "count": 23}, {"name": "Multiplex", "count": 11}, {"name": "Edge attributed", "count": 10}, {"name": "Directed", "count": 5}, {"name": "Node attributed", "count": 1}];
const domains = [{"name": "Social", "count": 43}, {"name": "Authorship", "count": 27}, {"name": "Food", "count": 24}, {"name": "Biology", "count": 22}, {"name": "Movies", "count": 21}, {"name": "Culture", "count": 21}, {"name": "Games", "count": 10}, {"name": "Consumer behaviour", "count": 6}, {"name": "Geography", "count": 5}, {"name": "Discussion forum", "count": 4}, {"name": "Finance", "count": 3}, {"name": "Technology", "count": 3}, {"name": "Geopolitical", "count": 1}];
const totalDatasets = 136;
const totalDomains = 13;
const totalTypes = 7;
const totalDatasetsEl = document.getElementById('statsTotalDatasets');
const totalDomainsEl = document.getElementById('statsTotalDomains');
const totalTypesEl = document.getElementById('statsTotalTypes');
if (totalDatasetsEl) totalDatasetsEl.textContent = totalDatasets.toLocaleString('en-US');
if (totalDomainsEl) totalDomainsEl.textContent = totalDomains.toLocaleString('en-US');
if (totalTypesEl) totalTypesEl.textContent = totalTypes.toLocaleString('en-US');
// Plot Network Type Distribution
const ctx1 = document.getElementById('networkTypeChart').getContext('2d');
new Chart(ctx1, {
type: 'bar',
data: {
labels: networkTypes.map(nt => nt.name),
datasets: [{
label: 'Number of Datasets',
data: networkTypes.map(nt => nt.count),
backgroundColor: 'rgba(54, 162, 235, 0.5)',
borderColor: 'rgba(54, 162, 235, 1)',
borderWidth: 1
}]
},
options: {
responsive: true,
scales: {
y: { beginAtZero: true }
}
}
});
// Plot Domain Distribution
const ctx2 = document.getElementById('domainChart').getContext('2d');
new Chart(ctx2, {
type: 'bar',
data: {
labels: domains.map(d => d.name),
datasets: [{
label: 'Number of Datasets',
data: domains.map(d => d.count),
backgroundColor: 'rgba(255, 99, 132, 0.5)',
borderColor: 'rgba(255, 99, 132, 1)',
borderWidth: 1
}]
},
options: {
responsive: true,
scales: {
y: { beginAtZero: true }
}
}
});
</script>
</body>
</html>