Skip to content

Commit

Permalink
don't calculate bar widths from inactive series; fixes #303
Browse files Browse the repository at this point in the history
  • Loading branch information
dchester committed Aug 13, 2013
1 parent 9d6248d commit 026d593
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/Rickshaw.Graph.Renderer.Bar.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 026d593

Please sign in to comment.