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,