Skip to content

Commit

Permalink
Fix ignoring white donut backgrounds.
Browse files Browse the repository at this point in the history
  • Loading branch information
diogobernardino committed Nov 16, 2020
1 parent 05cf53b commit 737add4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class DonutChartRenderer(

override fun draw() {

if (chartConfiguration.barBackgroundColor != -1)
if (chartConfiguration.barBackgroundColor != 0)
view.drawBackground(innerFrameWithStroke)

view.drawArc(datapoints.map { it.screenDegrees }, innerFrameWithStroke)
Expand Down

0 comments on commit 737add4

Please sign in to comment.