Permalink
Browse files

Merge pull request #55 from ossreleasefeed/bug857770-only-show-graph-…

…element-if-data

only show graph UI when there is enough data to draw one.
  • Loading branch information...
2 parents e69aa61 + b67dd42 commit ea2d3565a913f50afa687c248a67f07d5303f4c4 @lauraxt lauraxt 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 ea2d356

Please sign in to comment.