You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: components/chart/types/bubble.md
+71-4Lines changed: 71 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -93,19 +93,86 @@ To use a Chart component with Bubble series:
93
93
94
94
## Bubble Sizing
95
95
96
-
The Chart component determines the physical size of each bubble automatically:
96
+
By default, the Chart determines the physical size of each bubble automatically:
97
97
98
-
* The maximum bubble size is 20% of the smaller Chart dimension (width or height). This ensures that the largest bubbles do not occupy too much space.
99
-
* The minimum bubble size is 2% of the smaller Chart dimension, but not less than `10px`. This ensures that even the smallest bubbles are perceivable and accessible. The smallest bubble size also depends on the largest `Size` value in the Chart series.
98
+
* The maximum bubble diameter is 20% of the smaller Chart dimension (width or height). This ensures that the largest bubbles do not occupy too much space.
99
+
* The minimum bubble diameter is 2% of the smaller Chart dimension, but not less than `10px`. This ensures that even the smallest bubbles are perceivable and accessible. The smallest bubble size also depends on the largest `Size` value in the Chart series.
100
100
* All bubble sizes are set proportionately, as long as they comply with the preceding rules.
101
101
102
+
To change the minimum and maximum bubble diameter, use the `MinSize` and `MinSize` parameters of `<ChartSeries>`. In this case, the Chart component sets the diameter of the rendered bubbles based on:
103
+
104
+
* The absolute values of `MinSize` and `MaxSize`, which represent pixels.
105
+
* The ratio between `MinSize` and `MaxSize`.
106
+
* The ratio between the smallest and largest `Size` values in the series.
107
+
102
108
As a result of the above algorithms:
103
109
104
-
* Bubble sizing may not be linear if the ratio between the smallest and largest `Size`values is too big. For example, a 10-fold bubble size difference is achievable with a large-enough Chart, but a 100-fold size difference is not supported.
110
+
* Bubble sizing may not look proportionate if the ratio between the smallest and largest `Size`value in the series is not consistent with the ratio between the current minimum and maximum allowed bubble size.
105
111
* The Bubble Chart helps users compare bubble sizes in the same Chart instance, rather than between different instances. To compare bubbles from multiple series, define these series in the same Chart instance.
106
112
107
113
If you need to [improve the bubble size comparability across several Charts](slug:chart-kb-bubble-size), then use a dummy data item with a `Size` value that matches the maximum `Size` value in all Chart instances.
108
114
115
+
>caption Using default and custom Chart bubble sizes
Copy file name to clipboardExpand all lines: knowledge-base/chart-bubble-size.md
+4-1Lines changed: 4 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,7 +31,10 @@ This KB answers the following questions:
31
31
32
32
## Solution
33
33
34
-
The [Bubble Chart sets the minimum and maximum bubble sizes automatically](slug:components/chart/types/bubble#bubble-sizing), depending on the Chart dimensions, and the smallest and largest `Size` values in all series in the Chart instance.
34
+
The [Bubble Chart supports two algorithms to set the minimum and maximum bubble sizes](slug:components/chart/types/bubble#bubble-sizing):
35
+
36
+
* Automatically, depending on the Chart dimensions, and the smallest and largest `Size` values in all series in the Chart instance.
37
+
* Based on the `<ChartSeries>``MinSize` and `MaxSize` parameters.
35
38
36
39
To display comparable bubble sizes in multiple Charts:
0 commit comments