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?
- Andrei Sushynski asked 7 years ago
- You must login 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;
[_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
- Andrii Poliuk answered 7 years ago
- You must login to post comments
Please login first to submit.