Skip to content

Commit

Permalink
Fix undeclared variables warning when using categorical charts
Browse files Browse the repository at this point in the history
  • Loading branch information
wlach committed Mar 12, 2018
1 parent 6c189f1 commit da7b89a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/js/common/y_axis.js
Original file line number Diff line number Diff line change
Expand Up @@ -579,6 +579,7 @@ function categoricalGuides (args, axisArgs) {
var first = groupScale(group) + scale(scale.domain()[0]) + scale.bandwidth() / 2 * (group === null || (position !== 'top' && position != 'bottom'));
var last = groupScale(group) + scale(scale.domain()[scale.domain().length - 1]) + scale.bandwidth() / 2 * (group === null || (position !== 'top' && position != 'bottom'));

var x11, x21, y11, y21, x12, x22, y12, y22;
if (position === 'left' || position === 'right') {
x11 = mg_get_plot_left(args);
x21 = mg_get_plot_left(args);
Expand Down

0 comments on commit da7b89a

Please sign in to comment.