Skip to content
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

NormalizeSizeEnabled for Bubble Charts #219

Merged
merged 2 commits into from
Feb 24, 2018
Merged

NormalizeSizeEnabled for Bubble Charts #219

merged 2 commits into from
Feb 24, 2018

Conversation

JonnyLinja
Copy link

Added normalizeSizeEnabled for bubble charts. Allows you to use the actual size for each bubble rather than having it scale based on largest value.

See PhilJay/MPAndroidChart#2185 and ChartsOrg/Charts#692

…ctual size for each bubble rather than having it scale based on largest value
@JonnyLinja JonnyLinja changed the title N NormalizeSizeEnabled for Bubble Charts Feb 20, 2018
@@ -26,6 +26,9 @@ class BubbleDataExtract : DataExtract {
if config["highlightCircleWidth"].number != nil {
bubbleDataSet.highlightCircleWidth = CGFloat(config["highlightCircleWidth"].numberValue)
}
if config["normalizeSizeEnabled"].number != nil {
bubbleDataSet.normalizeSizeEnabled = config["normalizeSizeEnabled"].boolValue
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

config["normalizeSizeEnabled"].bool != nil will be better.

@@ -26,6 +26,9 @@ class BubbleDataExtract : DataExtract {
if config["highlightCircleWidth"].number != nil {
bubbleDataSet.highlightCircleWidth = CGFloat(config["highlightCircleWidth"].numberValue)
}
if config["normalizeSizeEnabled"].number != nil {
bubbleDataSet.normalizeSizeEnabled = config["normalizeSizeEnabled"].boolValue
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

config["normalizeSizeEnabled"].bool != nil will be better.

@wuxudong wuxudong merged commit 75deb6d into wuxudong:master Feb 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants