Skip to content

Commit

Permalink
Cover gaps between Y-axis background
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohammad Rezaei committed Jan 4, 2022
1 parent 9aa87ae commit 3fdc90c
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -260,13 +260,13 @@ private void drawYAxisBackground(Canvas canvas) {
// Draw a background for Y-axis labels
canvas.drawRect(maxTextWidth, 0, mWidth, mMainRect.bottom, mBackgroundPaint);

// Draw a background for Y-axis labels
// Draw a background for Vol labels
if (mVolDraw != null)
canvas.drawRect(maxTextWidth, mVolRect.top, mWidth, mVolRect.bottom, mBackgroundPaint);
canvas.drawRect(maxTextWidth, mMainRect.bottom, mWidth, mVolRect.bottom, mBackgroundPaint);

// Draw a background for Y-axis labels
// Draw a background for Child view labels
if (mChildDraw != null)
canvas.drawRect(maxTextWidth, mChildRect.top, mWidth, mChildRect.bottom, mBackgroundPaint);
canvas.drawRect(maxTextWidth, mVolRect.bottom, mWidth, mChildRect.bottom, mBackgroundPaint);
}

private void drawWatermark(Canvas canvas) {
Expand Down

0 comments on commit 3fdc90c

Please sign in to comment.