Pre loader

Is it possible to make customannotation like axis marker annotation?

Welcome to the SciChart Forums!

  • Please read our Question Asking Guidelines for how to format a good question
  • Some reputation is required to post answers. Get up-voted to avoid the spam filter!
  • We welcome community answers and upvotes. Every Q&A improves SciChart for everyone

WPF Forums | JavaScript Forums | Android Forums | iOS Forums

1
0

I want to make label on yAxis.
SCIChart provides AxisMarkerAnnotation, but I want to use CustomAnnotation because I need something custom.
So I tried drawing a CustomAnnotation on the yAxis but failed.
Android succeeds in drawing CustomAnnotation on the yAxis using the method below, but iOS doesn’t provide it?
On iOS, Can’t customAnnotation only set the value of the yAxis like AxisMarkerAnnotation?
Android was possible…

error message like this
Exception raised with reason: CALayer position contains NaN: [nan 248.71]. Layer: <CALayer:0x280c10bc0; position = CGPoint (0 0); bounds = CGRect (0 0; 0 0); delegate = <BTChart.CurrentPriceAnnotationView: 0x13d74d8f0; frame = (0 0; 0 0); layer = <CALayer: 0x280c10bc0>>; sublayers = (<_UILabelLayer: 0x282d15860>); opaque = YES; allowsGroupOpacity = YES; >

Version
4.5.0
Images
  • You must to post comments
0
0

In our latest version 4.6.0, we have introduced the SCIAxisMarkerCustomAnnotation. This feature allows you to place a custom view directly on the Axis. You can implement it as follows:

let axisMarkerCustom = SCIAxisMarkerCustomAnnotation()
axisMarkerCustom.set(y1: 7)
axisMarkerCustom.customView = customView

For additional details, please refer to the example and documentation.

If you have any questions or need further assistance, feel free to reach out.

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.