diff --git a/Charts/Classes/Utils/ChartColorTemplates.swift b/Charts/Classes/Utils/ChartColorTemplates.swift index 77e0edf838..61c3bcd982 100644 --- a/Charts/Classes/Utils/ChartColorTemplates.swift +++ b/Charts/Classes/Utils/ChartColorTemplates.swift @@ -92,11 +92,8 @@ public class ChartColorTemplates: NSObject var index = colorString.startIndex let endIndex = colorString.endIndex - if length % 2 == 1 - { - index = index.advancedBy(1) - length = length - 1 - } + index = index.advancedBy(1) + length = length - 1 if length == 3 || length == 6 || length == 8 {