diff --git a/css/main.css b/css/main.css
index d2eda33..f827c5d 100644
--- a/css/main.css
+++ b/css/main.css
@@ -10,3 +10,20 @@ body {
.chart-box {
border: 1px solid grey;
}
+
+/* This container will allow scaling svg, so we don't need to care about it in d3.js */
+.svg-container {
+ display: inline-block;
+ position: relative;
+ width: 100%;
+ padding-bottom: 100%; /* aspect ratio */
+ vertical-align: top;
+ overflow: hidden;
+}
+
+.svg-content-responsive {
+ display: inline-block;
+ position: absolute;
+ top: 0; /* not 10px, but 0 instead */
+ left: 0;
+}
diff --git a/index.html b/index.html
index 30dc61b..344f895 100644
--- a/index.html
+++ b/index.html
@@ -85,6 +85,7 @@
+