|
@@ -438,9 +438,20 @@ open class PieChartRenderer: DataRenderer
|
|
labelPoint = CGPoint(x: pt2.x + 5, y: pt2.y - lineHeight)
|
|
labelPoint = CGPoint(x: pt2.x + 5, y: pt2.y - lineHeight)
|
|
}
|
|
}
|
|
|
|
|
|
- if dataSet.valueLineColor != nil
|
|
|
|
|
|
+ DrawLine: do
|
|
{
|
|
{
|
|
- context.setStrokeColor(dataSet.valueLineColor!.cgColor)
|
|
|
|
|
|
+ if dataSet.useValueColorForLine
|
|
|
|
+ {
|
|
|
|
+ context.setStrokeColor(dataSet.color(atIndex: j).cgColor)
|
|
|
|
+ }
|
|
|
|
+ else if let valueLineColor = dataSet.valueLineColor
|
|
|
|
+ {
|
|
|
|
+ context.setStrokeColor(valueLineColor.cgColor)
|
|
|
|
+ }
|
|
|
|
+ else
|
|
|
|
+ {
|
|
|
|
+ return
|
|
|
|
+ }
|
|
context.setLineWidth(dataSet.valueLineWidth)
|
|
context.setLineWidth(dataSet.valueLineWidth)
|
|
|
|
|
|
context.move(to: CGPoint(x: pt0.x, y: pt0.y))
|
|
context.move(to: CGPoint(x: pt0.x, y: pt0.y))
|
|
@@ -449,7 +460,7 @@ open class PieChartRenderer: DataRenderer
|
|
|
|
|
|
context.drawPath(using: CGPathDrawingMode.stroke)
|
|
context.drawPath(using: CGPathDrawingMode.stroke)
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
if drawXOutside && drawYOutside
|
|
if drawXOutside && drawYOutside
|
|
{
|
|
{
|
|
ChartUtils.drawText(
|
|
ChartUtils.drawText(
|