From ab0443461cd348a73df695fb6d6d5af68a4ffae4 Mon Sep 17 00:00:00 2001 From: dlawler489 <104159223@student.swin.edu.au> Date: Tue, 13 May 2025 19:06:48 +1000 Subject: [PATCH] updated axis labels and other minor changes --- CSS/style.css | 164 +++++++++------- index.html | 27 ++- script/script.js | 484 +++++++++++++++++++++++++++++++++++++---------- 3 files changed, 502 insertions(+), 173 deletions(-) diff --git a/CSS/style.css b/CSS/style.css index aeb1de8..855e082 100644 --- a/CSS/style.css +++ b/CSS/style.css @@ -1,69 +1,97 @@ +/* Base body styles */ body { - font-family: sans-serif; - } - .bar { - opacity: 0.8; - transition: opacity 0.3s; - } - .bar:hover { - opacity: 1; - } - .axis-label { - font-size: 14px; - font-weight: bold; - } - .tooltip { - position: absolute; - padding: 6px; - background: #fff; - border: 1px solid #ccc; - border-radius: 5px; - box-shadow: 0px 2px 8px rgba(0,0,0,0.2); - font-size: 12px; - pointer-events: none; - opacity: 0; - transition: all 0.3s ease; - } - .controls { - margin-bottom: 20px; - } - select { - margin-right: 10px; - padding: 5px; - } - button { - margin: 5px; - padding: 8px 12px; - font-size: 14px; - cursor: pointer; - background-color: #4E79A7; - color: white; - border: none; - border-radius: 4px; - } - button:hover { - background-color: #3a5f8c; - } - .legend { - margin-top: 20px; - } - .legend-item { - display: inline-block; - margin-right: 20px; - font-size: 14px; - } - .legend-color { - width: 12px; - height: 12px; - display: inline-block; - margin-right: 5px; - vertical-align: middle; - } - #loading { - font-size: 18px; - text-align: center; - margin: 20px; - } - .hidden { - display: none; - } \ No newline at end of file + font-family: sans-serif; +} + +/* Chart bars */ +.bar { + opacity: 0.8; + transition: opacity 0.3s; +} +.bar:hover { + opacity: 1; +} + +/* Axis labels */ +.axis-label { + font-size: 14px; + font-weight: bold; +} + +/* Tooltip styles */ +.tooltip { + position: absolute; + padding: 6px; + background: #fff; + border: 1px solid #ccc; + border-radius: 5px; + box-shadow: 0px 2px 8px rgba(0,0,0,0.2); + font-size: 12px; + pointer-events: none; + opacity: 0; + transition: all 0.3s ease; +} + +/* Controls section (dropdowns and buttons) */ +.controls { + margin-bottom: 20px; +} + +/* Dropdown (select) styling */ +select { + margin-right: 10px; + padding: 5px; +} + +/* Buttons styling */ +button { + margin: 5px; + padding: 8px 12px; + font-size: 14px; + cursor: pointer; + background-color: #4E79A7; + color: white; + border: none; + border-radius: 4px; +} +button:hover { + background-color: #3a5f8c; +} + +/* Legend area */ +.legend { + margin-top: 20px; +} +.legend-item { + display: inline-block; + margin-right: 20px; + font-size: 14px; +} +.legend-color { + width: 12px; + height: 12px; + display: inline-block; + margin-right: 5px; + vertical-align: middle; +} + +/* Loading message */ +#loading { + font-size: 18px; + text-align: center; + margin: 20px; +} + +/* Hidden class (for hiding elements like loading spinner) */ +.hidden { + display: none; +} + +/* Main page title */ +.page-title { + text-align: center; + margin-top: 20px; + margin-bottom: 10px; + font-size: 28px; + font-weight: bold; +} \ No newline at end of file diff --git a/index.html b/index.html index d94c17b..6ad0bfb 100644 --- a/index.html +++ b/index.html @@ -3,13 +3,22 @@