diff --git a/index.html b/index.html index 86fe9f6..ca0d1f3 100644 --- a/index.html +++ b/index.html @@ -20,18 +20,20 @@
-
-
-
-
-
+
+
+
+
+
+
+
+
-
Hover over a segment to see details diff --git a/styles.css b/styles.css index 4444010..82bfaca 100644 --- a/styles.css +++ b/styles.css @@ -132,9 +132,15 @@ body { position: relative; } -#chart-container { +.chart-wrapper { + position: relative; width: 70%; height: 80vh; +} + +#chart-container { + width: 100%; + height: 100%; background-color: white; border-radius: 8px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); @@ -143,7 +149,7 @@ body { /* Center label overlay */ .center-label { position: absolute; - left: 35%; /* Half of chart-container width (70% / 2) */ + left: 50%; top: 50%; transform: translate(-50%, -50%); text-align: left; @@ -329,9 +335,9 @@ body { flex-direction: column; } - #chart-container { + .chart-wrapper { width: 100%; - height: 90lvw + height: 90lvw; } #details-box {