Skip to content

Commit 5a72619

Browse files
committed
eslint
1 parent 47cf2b4 commit 5a72619

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/angular-graphs.bar.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -201,13 +201,13 @@ angular.module('picardy.graphs.bar', ['picardy.graphs.common'])
201201
'text-anchor': isVertical() ? 'middle' : 'left',
202202
'alignment-baseline': 'central',
203203
'transform': function () {
204-
var xPos, yPos;
204+
var xPos, yPos, boxWidthHalf, xMax, xMin;
205205
if (isVertical()) {
206-
var boxWidthHalf = this.getBBox().width / 2;
206+
boxWidthHalf = this.getBBox().width / 2;
207207
yPos = options.height - this.getBBox().height;
208208
xPos = margin.label + margin.yAxis + 20 + x(d.x) + x.rangeBand() / 2;
209-
var xMax = options.width - boxWidthHalf;
210-
var xMin = margin.label + margin.yAxis + 20 + boxWidthHalf;
209+
xMax = options.width - boxWidthHalf;
210+
xMin = margin.label + margin.yAxis + 20 + boxWidthHalf;
211211

212212
xPos = Math.max(xMin, Math.min(xMax, xPos));
213213
} else {

0 commit comments

Comments
 (0)