Skip to content

Commit

Permalink
Moved auto scale before render of axis lines
Browse files Browse the repository at this point in the history
  • Loading branch information
danielgindi authored and plackemacher committed Mar 1, 2017
1 parent 6dc20c9 commit 74e83fc
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -201,14 +201,14 @@ protected void onDraw(Canvas canvas) {
if (mXAxis.isEnabled())
mXAxisRenderer.computeAxis(mXAxis.mAxisMinimum, mXAxis.mAxisMaximum, false);

mXAxisRenderer.renderAxisLine(canvas);
mAxisRendererLeft.renderAxisLine(canvas);
mAxisRendererRight.renderAxisLine(canvas);

if (mAutoScaleMinMaxEnabled) {
autoScale();
}

mXAxisRenderer.renderAxisLine(canvas);
mAxisRendererLeft.renderAxisLine(canvas);
mAxisRendererRight.renderAxisLine(canvas);

mXAxisRenderer.renderGridLines(canvas);
mAxisRendererLeft.renderGridLines(canvas);
mAxisRendererRight.renderGridLines(canvas);
Expand Down

0 comments on commit 74e83fc

Please sign in to comment.