From d45049e58c92795fd266e2da05a9601b7568b1b9 Mon Sep 17 00:00:00 2001 From: Jacob Christie Date: Sun, 21 Jan 2018 22:07:49 -0400 Subject: [PATCH] BubbleChart uses correct colour for index now. --- 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 8498070c17..51e937e0fc 100644 --- a/Source/Charts/Renderers/BubbleChartRenderer.swift +++ b/Source/Charts/Renderers/BubbleChartRenderer.swift @@ -105,7 +105,7 @@ open class BubbleChartRenderer: BarLineScatterCandleBubbleRenderer guard viewPortHandler.isInBoundsRight(_pointBuffer.x - shapeHalf) else { break } - let color = dataSet.color(atIndex: Int(entry.x)) + let color = dataSet.color(atIndex: j) let rect = CGRect( x: _pointBuffer.x - shapeHalf,