From e71b3f1c389d859b8ebf2fb632823b91a999762c Mon Sep 17 00:00:00 2001 From: Christian Bachmann Date: Tue, 10 Jan 2017 07:34:16 +0100 Subject: [PATCH] #2047 BubbleChartRenderer colors from dataset issue (3.0.1) --- Source/Charts/Renderers/BubbleChartRenderer.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Charts/Renderers/BubbleChartRenderer.swift b/Source/Charts/Renderers/BubbleChartRenderer.swift index 7bd2ead402..70d0dc45af 100644 --- a/Source/Charts/Renderers/BubbleChartRenderer.swift +++ b/Source/Charts/Renderers/BubbleChartRenderer.swift @@ -119,7 +119,7 @@ open class BubbleChartRenderer: BarLineScatterCandleBubbleRenderer break } - let color = dataSet.color(atIndex: Int(entry.x)) + let color = dataSet.color(atIndex: j) let rect = CGRect( x: _pointBuffer.x - shapeHalf,