Pre loader

SCIAxisMarkerAnnotation Alignment

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



Please take a look at the attached screenshot first.

I have a chart configured to draw some data. I need to draw SCIAxisMarkerAnnotation on Y axis. And it seems that annotation has alignment by right side of axis area. Is there a possibility to change it to left side of axis area?

  • You must to post comments

Good day

We don’t have option for axis marker layout. I will create a task for adding this.
If you have fixed axis width you can use following workaround:

float yAxisWidth = 150;
float axisMarkerWidth = 50;

[ setRightAxisAreaSize:yAxisWidth];
SCIAxisMarkerAnnotation * marker = [[SCIAxisMarkerAnnotation alloc] init];
marker.yAxisId = @"yAxis"; = ^(UITextField * view) {
    CGRect frame = view.frame;
    frame.size.width = axisMarkerWidth;
    float offset = yAxisWidth*0.5 - axisMarkerWidth*0.5;
    frame.origin.x = frame.origin.x - offset;
    view.frame = frame;
_surface.annotation = marker; // _surface is SCIChartSurface

Best regards
SciChart iOS Developer

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.

Try SciChart Today

Start a trial and discover why we are the choice
of demanding developers worldwide

Start TrialCase Studies