Permalink
Browse files

Remove debug from total score graph; add CSS to make it show up

  • Loading branch information...
1 parent 9c2daea commit 965ddf2deafb0be119a475c727f5d7f677aa5266 @abh abh committed Feb 17, 2012
Showing with 7 additions and 5 deletions.
  1. +2 −0 docs/shared/static/css/content.css
  2. +5 −5 docs/shared/static/js/graphs.js
@@ -183,6 +183,8 @@ span.legend {
margin-right: 20px;
}
+.total_score { fill: none; stroke: blue; stroke-width: 2px }
+
span.legend {
border-bottom: 1px dotted black;
}
@@ -171,13 +171,13 @@ svg.selectAll(".total_score")
.data([dh])
.enter().append("path")
.attr("class", "line total_score")
+ .style("fill", "none")
.style("stoke", "red")
- .style("stroke-width", "1.5px")
+ .style("stroke-width", 2)
.attr("d", d3.svg.line()
- .x(function(d) { var px = x(d.date); console.log("px", d.date, px); return px; })
- .y(function(d) { var py = y_score(d.score); console.log("py", d.score, py); return py; }));
-
-svg.selectAll("g.scores")
+ .x(function(d) { return x(d.date); })
+ .y(function(d) { return y_score(d.score); })
+ );
// -----------------------------
// Add Title then Legend

0 comments on commit 965ddf2

Please sign in to comment.