From 026d5931d293e388ad496be340c1105fd29eacc5 Mon Sep 17 00:00:00 2001 From: David Chester Date: Mon, 12 Aug 2013 20:58:51 -0400 Subject: [PATCH] don't calculate bar widths from inactive series; fixes #303 --- src/js/Rickshaw.Graph.Renderer.Bar.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/Rickshaw.Graph.Renderer.Bar.js b/src/js/Rickshaw.Graph.Renderer.Bar.js index f6910b54..1fb2f344 100644 --- a/src/js/Rickshaw.Graph.Renderer.Bar.js +++ b/src/js/Rickshaw.Graph.Renderer.Bar.js @@ -49,7 +49,7 @@ Rickshaw.Graph.Renderer.Bar = Rickshaw.Class.create( Rickshaw.Graph.Renderer, { var vis = args.vis || graph.vis; vis.selectAll('*').remove(); - var barWidth = this.barWidth(series[0]); + var barWidth = this.barWidth(series.active()[0]); var barXOffset = 0; var activeSeriesCount = series.filter( function(s) { return !s.disabled; } ).length;