Skip to content

Commit

Permalink
hide average lines for governors - for #130
Browse files Browse the repository at this point in the history
  • Loading branch information
michalgm committed Dec 13, 2013
1 parent 8c65780 commit 3369fec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion www/js/dem_charts.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ DEMBarChart.prototype.draw = function (data) {
if (! $('.averages').length) {
svg.append('g').attr('class', 'averages');
}
var averages = svg.selectAll('.averages');
var averages = svg.selectAll('.averages').style('opacity', ($('#chamber').val() != 'state:governor' || gf.data.nodes[current_network].type == 'donors') ? 1 : 0);

var average_rects = averages.selectAll('rect')
.data(data, function(d) { return d.label; })
Expand Down

0 comments on commit 3369fec

Please sign in to comment.