diff --git a/assets/css/main.css b/assets/css/main.css index 6bd2f3c..68bc531 100644 --- a/assets/css/main.css +++ b/assets/css/main.css @@ -184,10 +184,6 @@ h3 { margin: 15px auto 0 auto; } -#big-graph { - height: 500px; -} - #big-graph-checkboxes > table { width: 100%; } diff --git a/assets/js/site.js b/assets/js/site.js index ebd3288..fe0b528 100644 --- a/assets/js/site.js +++ b/assets/js/site.js @@ -265,6 +265,8 @@ $(document).ready(function() { socket.on('historyGraph', function(rawData) { displayedGraphData = rawData; + $('#big-graph').css('height', '500px'); + historyPlot = $.plot('#big-graph', convertGraphData(rawData), bigChartOptions); $('#big-graph').bind('plothover', handlePlotHover);