Skip to content

Commit aa6bb74

Browse files
committed
1 parent 7ef82f2 commit aa6bb74

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎MPChartLib/src/com/github/mikephil/charting/components/Legend.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ public Legend() {
108108
mTextSize = Utils.convertDpToPixel(10f);
109109
mStackSpace = Utils.convertDpToPixel(3f);
110110
this.mXOffset = Utils.convertDpToPixel(5f);
111-
this.mYOffset = Utils.convertDpToPixel(4f); // 2
111+
this.mYOffset = Utils.convertDpToPixel(3f); // 2
112112
}
113113

114114
/**

‎MPChartLib/src/com/github/mikephil/charting/renderer/LegendRenderer.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ public void renderLegend(Canvas c) {
243243
if (legendPosition == Legend.LegendPosition.ABOVE_CHART_LEFT ||
244244
legendPosition == Legend.LegendPosition.ABOVE_CHART_RIGHT ||
245245
legendPosition == Legend.LegendPosition.ABOVE_CHART_CENTER) {
246-
posY = 0.f;
246+
posY = yoffset;
247247
} else {
248248
posY = mViewPortHandler.getChartHeight() - yoffset - mLegend.mNeededHeight;
249249
}

0 commit comments

Comments
 (0)