Fix #1637
This commit is contained in:
parent
7ef82f2b00
commit
aa6bb7418d
2 changed files with 2 additions and 2 deletions
|
@ -108,7 +108,7 @@ public class Legend extends ComponentBase {
|
|||
mTextSize = Utils.convertDpToPixel(10f);
|
||||
mStackSpace = Utils.convertDpToPixel(3f);
|
||||
this.mXOffset = Utils.convertDpToPixel(5f);
|
||||
this.mYOffset = Utils.convertDpToPixel(4f); // 2
|
||||
this.mYOffset = Utils.convertDpToPixel(3f); // 2
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -243,7 +243,7 @@ public class LegendRenderer extends Renderer {
|
|||
if (legendPosition == Legend.LegendPosition.ABOVE_CHART_LEFT ||
|
||||
legendPosition == Legend.LegendPosition.ABOVE_CHART_RIGHT ||
|
||||
legendPosition == Legend.LegendPosition.ABOVE_CHART_CENTER) {
|
||||
posY = 0.f;
|
||||
posY = yoffset;
|
||||
} else {
|
||||
posY = mViewPortHandler.getChartHeight() - yoffset - mLegend.mNeededHeight;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue