Fixed issue #83

This commit is contained in:
Terry Worona
2014-08-07 13:30:48 -07:00
parent 6531c68574
commit 7ffdf6d9da
+5 -1
View File
@@ -437,13 +437,17 @@ static UIColor *kJBLineChartViewDefaultDotSelectionColor = nil;
lineWidth = [self.delegate lineChartView:self widthForLineAtLineIndex:lineIndex];
}
CGFloat dotRadius = lineWidth * kJBLineChartDotsViewDefaultRadiusFactor; // default
CGFloat dotRadius = 0;
if (showsDots)
{
if ([self.delegate respondsToSelector:@selector(lineChartView:dotRadiusForLineAtLineIndex:)])
{
dotRadius = [self.delegate lineChartView:self dotRadiusForLineAtLineIndex:lineIndex];
}
else
{
dotRadius = lineWidth * kJBLineChartDotsViewDefaultRadiusFactor; // default
}
}
CGFloat currentMaxLineWidth = MAX(dotRadius, lineWidth);