Skip to content

Commit

Permalink
changes
Browse files Browse the repository at this point in the history
  • Loading branch information
pdgago committed May 11, 2015
1 parent 5c23c22 commit 9b45b75
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions charicharts.js
Original file line number Diff line number Diff line change
Expand Up @@ -1294,12 +1294,12 @@ var p_scale = PClass.extend({
var valDiff = extDiff * 0.05;

if (extDiff <= 0) {
valDiff = 1;
valDiff = extent[1] * 0.05;
}

if (opt && !opt.min) {return extent;}

if (position === 'y' && fit) {
if ((position === 'y' || position === 'y2') && fit) {
extent[0] = extent[0] - valDiff;
extent[1] = extent[1] + valDiff;
}
Expand Down
2 changes: 1 addition & 1 deletion charicharts.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions demo/charicharts.js
Original file line number Diff line number Diff line change
Expand Up @@ -1294,12 +1294,12 @@ var p_scale = PClass.extend({
var valDiff = extDiff * 0.05;

if (extDiff <= 0) {
valDiff = 1;
valDiff = extent[1] * 0.05;
}

if (opt && !opt.min) {return extent;}

if (position === 'y' && fit) {
if ((position === 'y' || position === 'y2') && fit) {
extent[0] = extent[0] - valDiff;
extent[1] = extent[1] + valDiff;
}
Expand Down
4 changes: 2 additions & 2 deletions src/parts/scale.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,12 +129,12 @@ var p_scale = PClass.extend({
var valDiff = extDiff * 0.05;

if (extDiff <= 0) {
valDiff = 1;
valDiff = extent[1] * 0.05;
}

if (opt && !opt.min) {return extent;}

if (position === 'y' && fit) {
if ((position === 'y' || position === 'y2') && fit) {
extent[0] = extent[0] - valDiff;
extent[1] = extent[1] + valDiff;
}
Expand Down

0 comments on commit 9b45b75

Please sign in to comment.