Permalink
Browse files

only show graph UI when there is enough data to draw one.

  • Loading branch information...
1 parent 714d0c7 commit b67dd42804721f891cc515e78c3b89aa724601b2 @schalkneethling schalkneethling committed Apr 4, 2013
Showing with 5 additions and 2 deletions.
  1. +1 −0 css/styles.css
  2. +4 −2 js/fhr.js
View
@@ -466,6 +466,7 @@ h3 {
/* --- Graph --- */
.graphbox {
+ display: none;
position: relative;
margin: 0 60px 30px;
width: 700px;
View
@@ -149,8 +149,10 @@ $(function() {
if(getSessionsCount() < 5) {
$('#hungryfox').show('slow');
} else {
- // We have enough data, draw the graph.
- // By default, we draw all startup times.
+ // We have enough data, show the graph UI and
+ // draw the graph. By default, we draw average
+ // startup times.
+ $('.graphbox').show();
drawGraph(true);
}

0 comments on commit b67dd42

Please sign in to comment.