From 737add4348ba97fe5a9633cd8d426a10957d7bbd Mon Sep 17 00:00:00 2001 From: Diogo Bernardino Date: Mon, 16 Nov 2020 17:55:54 +0100 Subject: [PATCH] Fix ignoring white donut backgrounds. --- .../java/com/db/williamchart/renderer/DonutChartRenderer.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/williamchart/src/main/java/com/db/williamchart/renderer/DonutChartRenderer.kt b/williamchart/src/main/java/com/db/williamchart/renderer/DonutChartRenderer.kt index 9c408456..1efc1033 100644 --- a/williamchart/src/main/java/com/db/williamchart/renderer/DonutChartRenderer.kt +++ b/williamchart/src/main/java/com/db/williamchart/renderer/DonutChartRenderer.kt @@ -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)