BubbleSeries3D.MaxSize Property
Gets or sets the maximum size of the bubble marker.
Namespace: DevExpress.Xpf.Charts
Assembly: DevExpress.Xpf.Charts.v19.1.dll
Declaration
Property Value
Type | Description |
---|---|
Double | A Double value which specifies the marker’s maximum size (measured in X-axis units). The BubbleSeries3D.MinSize and MaxSize properties specify the marker’s size range on the X-axis. This value should be greater than 0. |
Remarks
This property is intended to forcibly limit the maximum size of the marker when the weight of a series point is too high relative to the other series points, and this may affect the appearance of a chart.
When calculating a bubble’s size, the extreme values within a single series are taken into account. This means that the maximum value in a series determines the MaxSize of a bubble and the minimum value - its BubbleSeries3D.MinSize. These values are calculated in the measurement units of the X-axis.
Note that the MaxSize property’s value should be greater than the value of the BubbleSeries3D.MinSize property.
Example
The following example demonstrates how to create a 3D Bubble chart. To do this, it is necessary to assign the ChartControl.Diagram property to XYDiagram3D, and then add a BubbleSeries3D object with points to the diagram’s Diagram.Series collection.
Note
A complete sample project is available at https://github.com/DevExpress-Examples/how-to-create-a-3d-bubble-chart-e1690.
<Window x:Class="Bubble3DChart.Window1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:dxc="http://schemas.devexpress.com/winfx/2008/xaml/charts" Title="Window1" Height="350" Width="500">
<Grid>
<dxc:ChartControl Name="chartControl1">
<dxc:ChartControl.Diagram>
<dxc:XYDiagram3D>
<dxc:XYDiagram3D.Series>
<dxc:BubbleSeries3D ColorEach="True" MinSize="0.3" MaxSize="1" AutoSize="False">
<dxc:BubbleSeries3D.Points>
<dxc:SeriesPoint Argument="A" Value="10" dxc:BubbleSeries3D.Weight="4" />
<dxc:SeriesPoint Argument="B" Value="12" dxc:BubbleSeries3D.Weight="1" />
<dxc:SeriesPoint Argument="C" Value="14" dxc:BubbleSeries3D.Weight="3" />
<dxc:SeriesPoint Argument="D" Value="17" dxc:BubbleSeries3D.Weight="2" />
</dxc:BubbleSeries3D.Points>
</dxc:BubbleSeries3D>
</dxc:XYDiagram3D.Series>
</dxc:XYDiagram3D>
</dxc:ChartControl.Diagram>
</dxc:ChartControl>
</Grid>
</Window>
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the MaxSize property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.