1

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

Dushyant Singh
  • 721
  • 4
  • 13

1 Answers1

1

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

sammyd
  • 883
  • 5
  • 6