Skip to content

Commit

Permalink
Fix issue w3c#66
Browse files Browse the repository at this point in the history
  • Loading branch information
almossawi committed May 22, 2014
1 parent 86e4917 commit 2700c10
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions js/metrics-graphics.js
Original file line number Diff line number Diff line change
Expand Up @@ -677,10 +677,15 @@ charts.line = function(args) {
var v = d[args.x_accessor];
var formatter = d3.time.format('%Y-%m-%d');

d3.selectAll('.transparent-rollover-rect rect')
//fixes issue #66 (svg artifacts on screen in firefox)
$('svg.linked .transparent-rollover-rect')
.attr('transform', 'translate(0,-1)')
.attr('transform', 'translate(0,1)');

$('svg.linked .transparent-rollover-rect rect')
.attr('opacity', 0);

d3.selectAll('.roll_' + formatter(v))
$('.roll_' + formatter(v))
.attr('opacity', 0.2)
}

Expand Down

0 comments on commit 2700c10

Please sign in to comment.