Remove Custom Check
calculate() no longer checks if min and max is custom, it just adds the padding.
This commit is contained in:
parent
3e1eb1445a
commit
e1411f169e
1 changed files with 5 additions and 13 deletions
|
@ -373,19 +373,11 @@ public class YAxis extends AxisBase {
|
|||
min = min - 1f;
|
||||
}
|
||||
|
||||
// bottom-space only effects non-custom min
|
||||
if (!mCustomAxisMin) {
|
||||
|
||||
float bottomSpace = range / 100f * getSpaceBottom();
|
||||
this.mAxisMinimum = (min - bottomSpace);
|
||||
}
|
||||
|
||||
// top-space only effects non-custom max
|
||||
if (!mCustomAxisMax) {
|
||||
|
||||
float topSpace = range / 100f * getSpaceTop();
|
||||
this.mAxisMaximum = (max + topSpace);
|
||||
}
|
||||
float bottomSpace = range / 100f * getSpaceBottom();
|
||||
this.mAxisMinimum = (min - bottomSpace);
|
||||
|
||||
float topSpace = range / 100f * getSpaceTop();
|
||||
this.mAxisMaximum = (max + topSpace);
|
||||
|
||||
// calc actual range
|
||||
this.mAxisRange = Math.abs(this.mAxisMaximum - this.mAxisMinimum);
|
||||
|
|
Loading…
Add table
Reference in a new issue