-
-
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
What is relation between the BubbleSize and the axis value?Can we control the size of Bubble in Bubble Chart? #2448
Comments
A bubble chart is a variation of a scatter chart in which the data points are replaced with bubbles, and an additional dimension of the data is represented in the size of the bubbles. Just like a scatter chart, a bubble chart does not use a category axis — both horizontal and vertical axes are value axes. In addition to the x values and y values that are plotted in a scatter chart, a bubble chart plots x values, y values, and z (size) values. wikipedia A bubble chart is a type of chart that displays three dimensions of data. Each entity with its triplet (v1, v2, v3) of associated data is plotted as a disk that expresses two of the vi values through the disk's xy location and the third through its size. Bubble charts can facilitate the understanding of social, economical, medical, and other scientific relationships. Bubble charts can be considered a variation of the scatter plot, in which the data points are replaced with bubbles. As the documentation for Microsoft Office explains, "You can use a bubble chart instead of a scatter chart if your data has three data series that each contain a set of values. The sizes of the bubbles are determined by the values in the third data series.".[1]
|
for i in 0..<dataPoints.count { The bubbles varies according to the data.. What is happening ..? |
size is not a constant. that does not make sense this is the 3rd dimension |
update Charts in first to 3.0.2 |
@thieeryH91200,Sorry for late reply but how the sizes(1 to 5) are set to the bubbles?? |
let size = Double(arc4random_uniform(5)) + 1 |
i don't mean that, we have sizes ranging from 1 to 5. How the sizes are choosen..? |
Thank you..Got it :) |
Thanks @thierryH91200 ! |
I don't know what is happening.
let set1: BubbleChartDataSet = BubbleChartDataSet(yVals: dataEntries1, label: "First Set") set1._maxSize = 30
Even though i have set max size to 30 bubbles are larger according to the data values
The text was updated successfully, but these errors were encountered: