SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and iOS Chart & Android Chart Components

0
0

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

Version
2.2.x
  • You must to post comments
0
0

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.

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.