diff --git a/Classes/JBLineChartView.m b/Classes/JBLineChartView.m index 4c0ce2b4..fe01e8b0 100755 --- a/Classes/JBLineChartView.m +++ b/Classes/JBLineChartView.m @@ -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);