Skip to content

Commit

Permalink
Use correct color index for bubble chart
Browse files Browse the repository at this point in the history
  • Loading branch information
danielgindi committed Jan 22, 2020
1 parent 4549ae1 commit bafb0fb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ protected void drawDataSet(Canvas c, IBubbleDataSet dataSet) {
if (!mViewPortHandler.isInBoundsRight(pointBuffer[0] - shapeHalf))
break;

final int color = dataSet.getColor((int) entry.getX());
final int color = dataSet.getColor(j);

mRenderPaint.setColor(color);
c.drawCircle(pointBuffer[0], pointBuffer[1], shapeHalf, mRenderPaint);
Expand Down

0 comments on commit bafb0fb

Please sign in to comment.