Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
55
Hiding Rightmost Major Stroke
posted

Hi,

I'm trying to create the attached mockup but I'm having issues hiding the last major stroke of the y axis and extending the strokes a bit so that they do not end exactly at the topmost x axis major stroke. To hide the last major stroke I'm trying to do a workaround by adding a dummy right axis. But it's getting added to the left side. Please see the code below:

IGNumericYAxis *y2 = [[IGNumericYAxis alloc]initWithKey:@"y2"];
y2.minimum = 0;
y2.maximum = 1;
y2.majorStrokeThickness = 0;
y2.stroke = [[IGBrush alloc] initWithColor:[UIColor purpleColor]];
y2.strokeThickness = 20.0f;
y2.labelsVisible = NO;
y2.labelsLocation = IGAxisLabelsLocationOutsideRight;
[_chart addAxis:y2];

As for the stroke extension, is this something that could be done?