|
@@ -457,7 +457,7 @@ open class PieChartRenderer: DataRenderer
|
|
|
text: valueText,
|
|
|
point: labelPoint,
|
|
|
align: align,
|
|
|
- attributes: [NSAttributedStringKey.font: valueFont, NSAttributedStringKey.foregroundColor: valueTextColor]
|
|
|
+ attributes: [NSAttributedString.Key.font: valueFont, NSAttributedString.Key.foregroundColor: valueTextColor]
|
|
|
)
|
|
|
|
|
|
if j < data.entryCount && pe?.label != nil
|
|
@@ -468,8 +468,8 @@ open class PieChartRenderer: DataRenderer
|
|
|
point: CGPoint(x: labelPoint.x, y: labelPoint.y + lineHeight),
|
|
|
align: align,
|
|
|
attributes: [
|
|
|
- NSAttributedStringKey.font: entryLabelFont ?? valueFont,
|
|
|
- NSAttributedStringKey.foregroundColor: entryLabelColor ?? valueTextColor]
|
|
|
+ NSAttributedString.Key.font: entryLabelFont ?? valueFont,
|
|
|
+ NSAttributedString.Key.foregroundColor: entryLabelColor ?? valueTextColor]
|
|
|
)
|
|
|
}
|
|
|
}
|
|
@@ -483,8 +483,8 @@ open class PieChartRenderer: DataRenderer
|
|
|
point: CGPoint(x: labelPoint.x, y: labelPoint.y + lineHeight / 2.0),
|
|
|
align: align,
|
|
|
attributes: [
|
|
|
- NSAttributedStringKey.font: entryLabelFont ?? valueFont,
|
|
|
- NSAttributedStringKey.foregroundColor: entryLabelColor ?? valueTextColor]
|
|
|
+ NSAttributedString.Key.font: entryLabelFont ?? valueFont,
|
|
|
+ NSAttributedString.Key.foregroundColor: entryLabelColor ?? valueTextColor]
|
|
|
)
|
|
|
}
|
|
|
}
|
|
@@ -495,7 +495,7 @@ open class PieChartRenderer: DataRenderer
|
|
|
text: valueText,
|
|
|
point: CGPoint(x: labelPoint.x, y: labelPoint.y + lineHeight / 2.0),
|
|
|
align: align,
|
|
|
- attributes: [NSAttributedStringKey.font: valueFont, NSAttributedStringKey.foregroundColor: valueTextColor]
|
|
|
+ attributes: [NSAttributedString.Key.font: valueFont, NSAttributedString.Key.foregroundColor: valueTextColor]
|
|
|
)
|
|
|
}
|
|
|
}
|
|
@@ -513,7 +513,7 @@ open class PieChartRenderer: DataRenderer
|
|
|
text: valueText,
|
|
|
point: CGPoint(x: x, y: y),
|
|
|
align: .center,
|
|
|
- attributes: [NSAttributedStringKey.font: valueFont, NSAttributedStringKey.foregroundColor: valueTextColor]
|
|
|
+ attributes: [NSAttributedString.Key.font: valueFont, NSAttributedString.Key.foregroundColor: valueTextColor]
|
|
|
)
|
|
|
|
|
|
if j < data.entryCount && pe?.label != nil
|
|
@@ -524,8 +524,8 @@ open class PieChartRenderer: DataRenderer
|
|
|
point: CGPoint(x: x, y: y + lineHeight),
|
|
|
align: .center,
|
|
|
attributes: [
|
|
|
- NSAttributedStringKey.font: entryLabelFont ?? valueFont,
|
|
|
- NSAttributedStringKey.foregroundColor: entryLabelColor ?? valueTextColor]
|
|
|
+ NSAttributedString.Key.font: entryLabelFont ?? valueFont,
|
|
|
+ NSAttributedString.Key.foregroundColor: entryLabelColor ?? valueTextColor]
|
|
|
)
|
|
|
}
|
|
|
}
|
|
@@ -539,8 +539,8 @@ open class PieChartRenderer: DataRenderer
|
|
|
point: CGPoint(x: x, y: y + lineHeight / 2.0),
|
|
|
align: .center,
|
|
|
attributes: [
|
|
|
- NSAttributedStringKey.font: entryLabelFont ?? valueFont,
|
|
|
- NSAttributedStringKey.foregroundColor: entryLabelColor ?? valueTextColor]
|
|
|
+ NSAttributedString.Key.font: entryLabelFont ?? valueFont,
|
|
|
+ NSAttributedString.Key.foregroundColor: entryLabelColor ?? valueTextColor]
|
|
|
)
|
|
|
}
|
|
|
}
|
|
@@ -551,7 +551,7 @@ open class PieChartRenderer: DataRenderer
|
|
|
text: valueText,
|
|
|
point: CGPoint(x: x, y: y + lineHeight / 2.0),
|
|
|
align: .center,
|
|
|
- attributes: [NSAttributedStringKey.font: valueFont, NSAttributedStringKey.foregroundColor: valueTextColor]
|
|
|
+ attributes: [NSAttributedString.Key.font: valueFont, NSAttributedString.Key.foregroundColor: valueTextColor]
|
|
|
)
|
|
|
}
|
|
|
}
|