Skip to content

Commit

Permalink
D3 Line charts displays properly None values
Browse files Browse the repository at this point in the history
None values are just skipped on chart (no line).
  • Loading branch information
boris-42 committed Oct 6, 2016
1 parent c116ce3 commit a29dfe6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ceagle/static/js/angular-d3.js
Expand Up @@ -92,7 +92,8 @@ var line_chart = function(svg, title){

var line = d3.line()
.x(function(d) { return x(parse_date(d[0])); })
.y(function(d) { return y(d[1]); });
.y(function(d) { return y(d[1]); })
.defined(function(d) { return d[1] != null; })

path.datum(data).transition().attr("d", line);
}
Expand Down

0 comments on commit a29dfe6

Please sign in to comment.