diff --git a/Sources/SwiftUICharts/Charts/BarChart/BarChartRow.swift b/Sources/SwiftUICharts/Charts/BarChart/BarChartRow.swift index 4a517597..9abe01aa 100644 --- a/Sources/SwiftUICharts/Charts/BarChart/BarChartRow.swift +++ b/Sources/SwiftUICharts/Charts/BarChart/BarChartRow.swift @@ -23,7 +23,7 @@ public struct BarChartRow: View { index: index, width: Float(geometry.frame(in: .local).width - Constant.spacing), numberOfDataPoints: self.data.count, - gradientColor: self.style.foregroundColor.rotate(for: index), + gradientColor: self.style.foregroundColor.first!, touchLocation: self.$touchLocation) .scaleEffect(self.getScaleSize(touchLocation: self.touchLocation, index: index), anchor: .bottom) .animation(.spring()) diff --git a/Sources/SwiftUICharts/PieChart/PieChartRow.swift b/Sources/SwiftUICharts/PieChart/PieChartRow.swift index 4915bd97..b4d8d003 100644 --- a/Sources/SwiftUICharts/PieChart/PieChartRow.swift +++ b/Sources/SwiftUICharts/PieChart/PieChartRow.swift @@ -38,7 +38,7 @@ public struct PieChartRow: View { endDeg: self.slices[index].endDeg, index: index, backgroundColor: self.style.backgroundColor.startColor, - accentColor: self.style.foregroundColor.rotate(for: index) + accentColor: self.style.foregroundColor.first! ) }