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; >
- Junyoung Kang asked 1 year ago
- last edited 1 year ago
- You must login to post comments
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.
- Sanam Kapadia answered 1 month ago
- You must login to post comments
Please login first to submit.