Skip to main content

BubbleSeries2D.GetWeight(SeriesPoint) Method

Gets the value of the BubbleSeries2D.Weight attached property for a specified SeriesPoint.

Namespace: DevExpress.Xpf.Charts

Assembly: DevExpress.Xpf.Charts.v24.1.dll

NuGet Package: DevExpress.Wpf.Charts

Declaration

public static double GetWeight(
    SeriesPoint point
)

Parameters

Name Type Description
point SeriesPoint

A SeriesPoint object whose BubbleSeries2D.Weight property’s value is to be returned.

Returns

Type Description
Double

The value of the BubbleSeries2D.Weight property for the specified series point.

Remarks

The following code uses the GetWeight method to obtain the Weight value of each bubble point:

<dxc:ChartControl x:Name="chart">
    <dxc:ChartControl.DataContext>
        <local:ChartViewModel/>
    </dxc:ChartControl.DataContext>
    <dxc:XYDiagram2D>
        <dxc:BubbleSeries2D DisplayName="Series 1" 
                            DataSource="{Binding DataPoints}" 
                            ArgumentDataMember="X"
                            ValueDataMember="Y" 
                            dxc:WeightDataMember="W"/>
    </dxc:XYDiagram2D>
</dxc:ChartControl>
See Also