SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, iOS Chart, Android Chart and JavaScript Chart Components
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
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.
Please login first to submit.