How to make axis totaly disappear on a chart?


#1

HI,

When I create a ShinobiChart I always get a light gray x and y axis area. How do I completely get rid of those?

Thx,

Tom


#2

I can make an axis go to a width of 1 with this code but still will not go all the way away.

        yAxis.style.majorTickStyle.showLabels = NO;
        yAxis.style.majorTickStyle.showTicks = NO;
        yAxis.style.minorTickStyle.showLabels = NO;
        yAxis.style.minorTickStyle.showTicks = NO;
        yAxis.style.lineColor = [UIColor clearColor];
        yAxis.style.lineWidth = 0;


#3

Greetings Program!

I’m not sure if there is a built in function or property to do this but as one solution, set the chart frame to -2 for the x origin. Adding your code in the GettingStarted sample app and changing the chart init to the following makes it flush with the edge of the screen (view it’s in).

CGFloat margin = UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone ? 20.0 : 50.0;
ShinobiChart *chart = [[ShinobiChart alloc] initWithFrame:CGRectMake(-2, margin, self.view.bounds.size.width, self.view.bounds.size.height - margin)];

Wg