Skip to content
This repository has been archived by the owner on Jul 11, 2022. It is now read-only.

Commit

Permalink
Merge pull request #296 from josejulio/bugs/1427571
Browse files Browse the repository at this point in the history
Bug 1427571 - Solve Unusable group metric graphs.
  • Loading branch information
burmanm committed Mar 9, 2017
2 parents 499bdca + 00bdb34 commit 5c76d75
Showing 1 changed file with 9 additions and 5 deletions.
Expand Up @@ -291,7 +291,11 @@ function createMultiLines(chartContext) {
.attr("stroke", function(d,i){ return colorScale(i);})
.attr("stroke-width", "2")
.attr("stroke-opacity", ".9")
.attr("d", function(d) { return graphLine(d.value);});
.attr("d", function(d) { return graphLine(
d.value.filter(function(d) {
return ('nodata' in d)? !d.nodata : true;
})
);});
for (var i=0;i<chartContext.data.length;++i) {
svg.selectAll("dot")
Expand All @@ -301,11 +305,11 @@ function createMultiLines(chartContext) {
.filter(function(d) {
return ('nodata' in d)? !d.nodata : true;
})
.attr("stroke", "black")
.attr("stroke-width", "2")
.attr("stroke", function(){ return colorScale(i);})
.attr("stroke-width", "1")
.attr("stroke-opacity", ".9")
.attr("fill", "none")
.attr("r", 3.5)
.attr("fill", function(){ return colorScale(i);})
.attr("r", 2)
.attr("cx", function(d) {
return timeScale(d.x);
})
Expand Down

0 comments on commit 5c76d75

Please sign in to comment.