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

0
0

Hi,

There is a strange displaying behavior of custom annotation. I added custom annotation using the code below.

let imageView = UIImageView(image: UIImage(named: imageName))
imageView.frame = CGRect(origin: .zero, size: CGSize(width: 10, height: 10))

let customAnnotation = SCICustomAnnotation()
customAnnotation.customView = imageView
customAnnotation.verticalAnchorPoint = .bottom
customAnnotation.horizontalAnchorPoint = .center
customAnnotation.set(x1: xCoordinate)
customAnnotation.set(y1: yCoordinate)
sciChartSurface?.annotations.add(items: customAnnotation)

The result looks good, but when I move surface left and right, custom annotation would go outside of bounds. Like the image I uploaded.

Please help me solve the issue.

Thanks.

Version
3.0
Images
  • You must to post comments
1
0

Hi, there.

Thanks for pointing out this bug. We’ve fixed this issue and fix is available in the latest nightly cocoapods build – 3.1.0-nightly.5197

Please, try it and let us know if the issue is gone.

Thanks in advance.

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.