This commit is contained in:
Philipp Jahoda 2016-04-01 13:01:52 +02:00
parent 7ef82f2b00
commit aa6bb7418d
2 changed files with 2 additions and 2 deletions

View file

@ -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
}
/**

View file

@ -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;
}