Dynamically resize the 24hr chart
This commit is contained in:
parent
ac0ea0d5d7
commit
039d1364ea
@ -196,7 +196,7 @@ h3 {
|
|||||||
|
|
||||||
/* The big graph */
|
/* The big graph */
|
||||||
#big-graph, #big-graph-controls, #big-graph-checkboxes {
|
#big-graph, #big-graph-controls, #big-graph-checkboxes {
|
||||||
width: 1540px;
|
width: 90%;
|
||||||
margin: 15px auto 0 auto;
|
margin: 15px auto 0 auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -529,5 +529,11 @@ $(document).ready(function() {
|
|||||||
|
|
||||||
$(window).on('resize', function() {
|
$(window).on('resize', function() {
|
||||||
updatePercentageBar();
|
updatePercentageBar();
|
||||||
|
|
||||||
|
if (historyPlot) {
|
||||||
|
historyPlot.resize();
|
||||||
|
historyPlot.setupGrid();
|
||||||
|
historyPlot.draw();
|
||||||
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user