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

Bubbles size of bubble chart #930

Closed
marcomonanto opened this issue Apr 8, 2016 · 1 comment
Closed

Bubbles size of bubble chart #930

marcomonanto opened this issue Apr 8, 2016 · 1 comment

Comments

@marcomonanto
Copy link

Hi,

I'm doing a Bubble Chart but I got a problem when I set the size of the bubble after I updated the framework to 2.2.4.

here is a chunk of my code

for i in 0..<legend.count{

            let val: Double = (Double(i)+1);

            let bubbleChartDataEntry: BubbleChartDataEntry = BubbleChartDataEntry.init(xIndex: i, value: val, size: 0.01)

            var iChartDataEntry: [BubbleChartDataEntry] = [BubbleChartDataEntry]()
            iChartDataEntry.append(bubbleChartDataEntry)

            let colorsClipped: Array = WSCUtils.getPieSlicesColors(legend.count)

            set1 = BubbleChartDataSet.init(yVals: iChartDataEntry , label: nil);
            set1.setColor(colorsClipped[i]);
            set1.drawValuesEnabled = false;

            dataSets.addObject(set1);
            yVals1.removeAllObjects();

        }

i'm passing that 0.01 in size so something is not right and i cant find what...

screen shot 2016-04-08 at 14 52 35

@danielgindi
Copy link
Collaborator

What happens right now is that these are normalized against the max size in the dataset.
Which of course does not make sense, as there may be "smaller" bubbles without any full-size bubble.

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

No branches or pull requests

2 participants