Skip to content

Commit

Permalink
give mbg's an outline to make them more distinct
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason Calabrese committed Oct 17, 2014
1 parent b914ea2 commit 6bc2367
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions static/js/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,8 @@
.attr('cy', function (d) { return yScale(d.sgv); })
.attr('fill', function (d) { return d.color; })
.attr('opacity', function (d) { return futureOpacity(d.date - latestSGV.x); })
.attr('stroke-width', function (d) {if (d.type == 'mbg') return 2; else return 0; })
.attr('stroke', function (d) { return "white"; })
.attr('r', function(d) { if (d.type == 'mbg') return 6; else return 3;});

focusCircles.exit()
Expand Down Expand Up @@ -765,6 +767,8 @@
.attr('cy', function (d) { return yScale2(d.sgv); })
.attr('fill', function (d) { return d.color; })
.style('opacity', function (d) { return highlightBrushPoints(d) })
.attr('stroke-width', function (d) {if (d.type == 'mbg') return 2; else return 0; })
.attr('stroke', function (d) { return "white"; })
.attr('r', function(d) { if (d.type == 'mbg') return 4; else return 2;});

contextCircles.exit()
Expand Down

0 comments on commit 6bc2367

Please sign in to comment.