0

I would like to create a Chart Annotation that covers the y-axis like is shown in the image below. The view containing "160.86" is the one I'm trying to mimic. Is this possible with SChartAnnotations provided by Shinobi?

Currently the annotation I'm using gets hidden behind the y-axis labels as it nears the edge of the chart plot area.

enter image description here

4

1 回答 1

1

您的注释被隐藏的原因是它的超级视图之一已clipsToBounds设置为YES. 要覆盖此行为,请添加以下内容:

myChart.canvas.glView.clipsToBounds = NO;

请注意,您需要导入SChartCanvas头文件:

#import <ShinobiCharts/SChartCanvas.h>

在http://www.shinobicontrols.com/forum/shinobicontrols/2013/5/shinobichart-clips-annotation-views的 ShinobiControls 论坛上有更多信息

于 2014-07-29T10:33:39.397 回答