-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoverview.html
87 lines (81 loc) · 3.31 KB
/
overview.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Overview Page</title>
<!-- Google Charts library -->
<script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>
<!-- jQuery library -->
<script src="https://code.jquery.com/jquery-3.5.1.js"></script>
<!-- Bootstrap CSS and JS (for styling and structure) -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>
</head>
<body>
<div class="container-fluid">
<div class="row">
<!-- Vertical Navigation -->
<nav class="col-md-2 d-none d-md-block bg-light sidebar">
<div class="sidebar-sticky">
<ul class="nav flex-column">
<li class="nav-item">
<a class="nav-link active" href="#">
Overview
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">
User Management
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">
Project Management
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">
Project Drawings
</a>
</li>
</ul>
</div>
</nav>
<!-- Main Content -->
<main role="main" class="col-md-9 ml-sm-auto col-lg-10 px-4">
<div class="d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 pb-2 mb-3 border-bottom">
<h1 class="h2">Overview</h1>
</div>
<!-- Google Chart Container -->
<div id="piechart" style="width: 100%; height: 500px;"></div>
</main>
</div>
</div>
<script type="text/javascript">
// Load Google Charts library
google.charts.load("current", {packages:["corechart"]});
google.charts.setOnLoadCallback(drawChart);
function drawChart() {
var data = google.visualization.arrayToDataTable([
['projects', 'numbers'],
['project1',15],['project2',10],
['project3',20],['project4',30],['project5',25],['project6',15],['project7',35],
]);
var options = {
title: 'projects',
legend: 'none',
pieSliceText: 'label',
slices: {
4: {offset: 0.2},
12: {offset: 0.3},
14: {offset: 0.4},
15: {offset: 0.5},
},
};
var chart = new google.visualization.PieChart(document.getElementById('piechart'));
chart.draw(data, options);
}
</script>
</body>
</html>