Skip to content

Commit 8390bdd

Browse files
docs(Chart): Improve Bubble Sizing example (#3207)
Co-authored-by: Dimo Dimov <[email protected]>
1 parent 8b55498 commit 8390bdd

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

components/chart/types/bubble.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ If you need to [improve the bubble size comparability across several Charts](slu
128128
MinSize="1"
129129
MaxSize="200">
130130
<ChartSeriesLabels Visible="true">
131-
<ChartSeriesLabelsMargin Top="20" />
131+
<ChartSeriesLabelsMargin Top="24" />
132132
</ChartSeriesLabels>
133133
</ChartSeries>
134134
<ChartSeries Type="ChartSeriesType.Bubble"
@@ -144,6 +144,8 @@ If you need to [improve the bubble size comparability across several Charts](slu
144144
</ChartSeries>
145145
</ChartSeriesItems>
146146
147+
<ChartLegend Position="@ChartLegendPosition.Top" />
148+
147149
</TelerikChart>
148150
149151
@code {
@@ -155,9 +157,9 @@ If you need to [improve the bubble size comparability across several Charts](slu
155157
{
156158
BubbleData.Add(new()
157159
{
158-
XValue = i + 1,
159-
YValue1 = i + 1,
160-
YValue2 = (i + 1) * 2,
160+
XValue = 3 + (int)Math.Pow(i, 2),
161+
YValue1 = i + 2,
162+
YValue2 = (i + 3) * 2,
161163
SizeValue = (int)Math.Pow(2, i)
162164
});
163165
}

0 commit comments

Comments
 (0)