BubbleSeries2D.GetWeight(SeriesPoint) Method
In This Article
Gets the value of the BubbleSeries2D.Weight attached property for a specified SeriesPoint.
Namespace: DevExpress.Xpf.Charts
Assembly: DevExpress.Xpf.Charts.v24.2.dll
NuGet Package: DevExpress.Wpf.Charts
#Declaration
public static double GetWeight(
SeriesPoint point
)
#Parameters
Name | Type | Description |
---|---|---|
point | Series |
A Series |
#Returns
Type | Description |
---|---|
Double | The value of the Bubble |
#Remarks
The following code uses the GetWeight method to obtain the Weight value of each bubble point:
private void Window_Loaded(object sender, RoutedEventArgs e) {
BubbleSeries2D bubbleSeries = chart.Diagram.Series[0] as BubbleSeries2D;
if (bubbleSeries != null) {
foreach (SeriesPoint sp in bubbleSeries.Points) {
double weight = BubbleSeries2D.GetWeight(sp);
// Your custom logic goes here.
}
}
}
See Also