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

0
0

Hi,

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?

Version
v1.2.3.982
Images
  • You must to post comments
1
0

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;

[_surface.style setRightAxisAreaSize:yAxisWidth];
SCIAxisMarkerAnnotation * marker = [[SCIAxisMarkerAnnotation alloc] init];
marker.yAxisId = @"yAxis";
marker.style.viewSetup = ^(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
Andrii
SciChart iOS Developer

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.