From 3369fec6a738269b1a0783327ca5c4470933025c Mon Sep 17 00:00:00 2001 From: Greg Michalec Date: Fri, 13 Dec 2013 15:43:21 -0800 Subject: [PATCH] hide average lines for governors - for #130 --- www/js/dem_charts.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/js/dem_charts.js b/www/js/dem_charts.js index 2479a1f..dfef7f1 100644 --- a/www/js/dem_charts.js +++ b/www/js/dem_charts.js @@ -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; })