Skip to content

Commit

Permalink
Review comments ...
Browse files Browse the repository at this point in the history
  • Loading branch information
el committed Oct 7, 2019
1 parent 7da5f6b commit b5c2d2f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/core/core.scale.js
Original file line number Diff line number Diff line change
Expand Up @@ -1208,8 +1208,8 @@ var Scale = Element.extend({
var scaleLabelAlign = scaleLabel.align;
var position = options.position;
var rotation = 0;
var scaleLabelX, scaleLabelY, textAlign;
var isReverse = me.options.ticks.reverse;
var scaleLabelX, scaleLabelY, textAlign;

if (me.isHorizontal()) {
switch (scaleLabelAlign) {
Expand Down Expand Up @@ -1237,11 +1237,11 @@ var Scale = Element.extend({
switch (scaleLabelAlign) {
case 'start':
scaleLabelY = me.top + (startsAtBottom ? me.height : 0);
textAlign = (startsAtBottom ^ !isLeft) ? 'left' : 'right';
textAlign = startsAtBottom ^ !isLeft ? 'left' : 'right';
break;
case 'end':
scaleLabelY = me.top + (startsAtBottom ? 0 : me.height);
textAlign = (startsAtBottom ^ !isLeft) ? 'right' : 'left';
textAlign = startsAtBottom ^ !isLeft ? 'right' : 'left';
break;
default:
scaleLabelY = me.top + me.height / 2;
Expand Down

0 comments on commit b5c2d2f

Please sign in to comment.