diff --git a/hellocharts-library/src/lecho/lib/hellocharts/renderer/AbstractChartRenderer.java b/hellocharts-library/src/lecho/lib/hellocharts/renderer/AbstractChartRenderer.java index dc8ddcfd..5ca26140 100644 --- a/hellocharts-library/src/lecho/lib/hellocharts/renderer/AbstractChartRenderer.java +++ b/hellocharts-library/src/lecho/lib/hellocharts/renderer/AbstractChartRenderer.java @@ -113,13 +113,9 @@ protected void drawLabelTextAndBackground(Canvas canvas, char[] labelBuffer, int } canvas.drawRect(labelBackgroundRect, labelBackgroundPaint); - - textX = labelBackgroundRect.left + labelMargin; - textY = labelBackgroundRect.bottom - labelMargin; - } else { - textX = labelBackgroundRect.left; - textY = labelBackgroundRect.bottom; } + textX = labelBackgroundRect.left + labelMargin; + textY = labelBackgroundRect.bottom - labelMargin; canvas.drawText(labelBuffer, startIndex, numChars, textX, textY, labelPaint); }