Dynamically resize the 24hr chart

This commit is contained in:
Cryptkeeper 2017-03-14 20:48:07 -05:00
parent ac0ea0d5d7
commit 039d1364ea
2 changed files with 7 additions and 1 deletions

View File

@ -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;
}

View File

@ -529,5 +529,11 @@ $(document).ready(function() {
$(window).on('resize', function() {
updatePercentageBar();
if (historyPlot) {
historyPlot.resize();
historyPlot.setupGrid();
historyPlot.draw();
}
});
});