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

Welcome to the SciChart Community Forums!

Please use the forums below to ask questions about SciChart. Take a moment to read our Question asking guidelines on how to ask a good question and our support policy. We also have a tag=SciChart on Stackoverflow.com where you can earn rep for your questions!

Please note: SciChart team will only answer questions from customers with active support subscriptions. Expired support questions will be ignored. If your support status shows incorrectly, contact us and we will be glad to help.

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.