-
-
Notifications
You must be signed in to change notification settings - Fork 6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CombinedChartView bubbleData size not working #692
Comments
I am not sure why, but changing below code in bubble chart renderer // let shapeSize = getShapeSize(entrySize: entry.size, maxSize: dataSet.maxSize, reference: referenceSize)
let shapeSize = entry.size // directly use
let shapeHalf = shapeSize / 2.0 So seems the reason is private func getShapeSize(entrySize entrySize: CGFloat, maxSize: CGFloat, reference: CGFloat) -> CGFloat
{
let factor: CGFloat = (maxSize == 0.0) ? 1.0 : sqrt(entrySize / maxSize)
let shapeSize: CGFloat = reference * factor
return shapeSize
}
I would not say it equals to bar width, but the difference is small. You will see the second and third bubble are bigger than 4th one, which is identical to above shape size. |
The size was always being normalized against the max size in the dataset. |
yBubbleVals.append(BubbleChartDataEntry(xIndex: i, value: 10, size: 10))
the size is not working ,
thie bubble width always equals the bar width
The text was updated successfully, but these errors were encountered: