From 039d1364eab40a0f8cb72c91e822063e8c3be3cc Mon Sep 17 00:00:00 2001 From: Cryptkeeper Date: Tue, 14 Mar 2017 20:48:07 -0500 Subject: [PATCH] Dynamically resize the 24hr chart --- assets/css/main.css | 2 +- assets/js/site.js | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/assets/css/main.css b/assets/css/main.css index 73f78fb..dbba33c 100644 --- a/assets/css/main.css +++ b/assets/css/main.css @@ -196,7 +196,7 @@ h3 { /* The big graph */ #big-graph, #big-graph-controls, #big-graph-checkboxes { - width: 1540px; + width: 90%; margin: 15px auto 0 auto; } diff --git a/assets/js/site.js b/assets/js/site.js index 7bc74c8..78dc5a1 100644 --- a/assets/js/site.js +++ b/assets/js/site.js @@ -529,5 +529,11 @@ $(document).ready(function() { $(window).on('resize', function() { updatePercentageBar(); + + if (historyPlot) { + historyPlot.resize(); + historyPlot.setupGrid(); + historyPlot.draw(); + } }); });