Bar Graph with rounded corners
mrimadali opened this issue · comments
Hi
Can we add rounded corners to the Bar graph? I tried the following, But it is not rendering the Round-Rect corners.
- (UIBezierPath *)drawBarPathWithStartPoint:(CGPoint)startPoint endPoint:(CGPoint)endPoint{
CGRect rect = CGRectMake(startPoint.x, startPoint.y, endPoint.x - startPoint.x, endPoint.y - startPoint.y);
CGSize radii = CGSizeMake(5, 5);
UIRectCorner corners = UIRectCornerAllCorners;
UIBezierPath *path1 = [UIBezierPath bezierPathWithRoundedRect:rect byRoundingCorners:corners cornerRadii:radii];
[path1 closePath];
[path1 stroke];
return path1;
}
I want something like this: