put clockwise into method
This commit is contained in:
parent
36cbccd39c
commit
b1abe0810c
@ -132,7 +132,6 @@ open class DoughnutChart: View {
|
|||||||
|
|
||||||
let arcCenter = shapeLayer.position
|
let arcCenter = shapeLayer.position
|
||||||
let radius = shapeLayer.bounds.size.width / 2.0 - lineWidth()/2.0
|
let radius = shapeLayer.bounds.size.width / 2.0 - lineWidth()/2.0
|
||||||
let clockwise = true
|
|
||||||
|
|
||||||
let value: CGFloat = chartModel.percent
|
let value: CGFloat = chartModel.percent
|
||||||
let gap: CGFloat = spaceRequired() ? lineGap() : 0.0
|
let gap: CGFloat = spaceRequired() ? lineGap() : 0.0
|
||||||
@ -142,7 +141,7 @@ open class DoughnutChart: View {
|
|||||||
radius: radius,
|
radius: radius,
|
||||||
startAngle: startAngle,
|
startAngle: startAngle,
|
||||||
endAngle: endAngle,
|
endAngle: endAngle,
|
||||||
clockwise: clockwise)
|
clockwise: true)
|
||||||
|
|
||||||
shapeLayer.path = circlePath.cgPath
|
shapeLayer.path = circlePath.cgPath
|
||||||
doughnutLayer.addSublayer(shapeLayer)
|
doughnutLayer.addSublayer(shapeLayer)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user