Pergunta

I am trying to add annotations on chart axis , but annotation always gets clipped by the axis and I cannot place them on the axis besides the tickLabels.

enter image description here

Foi útil?

Solução

The reason that the clipping occurs is because the annotations are placed on a view which has clipsToBounds set to YES.

To change this:

chart.canvas.glView.clipsToBounds = NO;

To enable this to compile, you'll have to import SChartCanvas.h

#import <ShinobiControls/SChartCanvas.h>

Hope that helps

sam

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top