Hey Guys,
I have a requirement where I need to show Donut Chart Title , but adding any annotation is crashing my application.
let textAnnotation = SCITextAnnotation()
textAnnotation.coordinateMode = .relative
textAnnotation.x1 = SCIGeneric(0.5)
textAnnotation.y1 = SCIGeneric(0.5)
textAnnotation.horizontalAnchorPoint = .center
textAnnotation.verticalAnchorPoint = .center
textAnnotation.text = "Test"
textAnnotation.style.textStyle.fontSize = 14
textAnnotation.style.textColor = UIColor.fromARGBColorCode(0xff000000);
textAnnotation.style.backgroundColor = UIColor.clear
chartSurface.annotations = SCIAnnotationCollection(childAnnotations: [textAnnotation])
Thanks
- Sandeep Dhull asked 5 years ago
- You must login to post comments
Hi There,
Thanks for reporting this. We’ve deprecated annotations on SCIPieChartSurface and didn’t add annotation on that property. Please use Regular UIView on top of SCIPieChartSurface instead. (we added annotation in our latest version)
Hope that helps.
Best Regards,
Nazar R.
- Nazar Rudnyk answered 5 years ago
- You must login to post comments
Please login first to submit.