-
Notifications
You must be signed in to change notification settings - Fork 1
/
sac.html
42 lines (33 loc) · 1.25 KB
/
sac.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Stacked Area Chart with Labels</title>
<script src="https://d3js.org/d3.v7.min.js"></script>
<link rel="stylesheet" href="css/sacStyles.css">
</head>
<body>
<h1>Changing Energy Consumption and Type</h1>
<button id="backButton" class="navigation-button">Back</button>
<!-- <button id="nextButton" class="navigation-button">Next</button> -->
<label for="countrySelect">Select Country:</label>
<select id="countrySelect"></select>
<!-- Wrap the chart in a container div -->
<div id="sac-chart-container">
<script src="js/sac.js"></script>
</div>
<script>
// Back button logic
const backButton = document.getElementById("backButton");
backButton.addEventListener("click", function () {
window.location.href = "bc.html" // Go to the previous page
});
// // Next button logic
// const nextButton = document.getElementById("nextButton");
// nextButton.addEventListener("click", function () {
// window.location.href = "bc.html"; // Navigate to bc.html
// });
</script>
</body>
</html>