Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

ICalculatedSeriesData Interface

The interface should be implemented by an object that provides data for CalculatedSeries.

Namespace: DevExpress.Maui.Charts

Assembly: DevExpress.Maui.Charts.dll

NuGet Package: DevExpress.Maui.Charts

#Declaration

C#
public interface ICalculatedSeriesData

The following members return ICalculatedSeriesData objects:

#Example

This example populates a calculated series with data:

xml
<dxc:ChartView.Series>
    <dxc:LineSeries x:Name="stock" DisplayName="Stock">
        <dxc:LineSeries.Data>
            <data:StockSeriesData ItemsSource="{Binding Prices}"/>
        </dxc:LineSeries.Data>
    </dxc:LineSeries>
    <dxc:BollingerBandsIndicator>
        <dxc:BollingerBandsIndicator.Data>
            <data:CalculatedSeriesData Series="{x:Reference stock}">
        </dxc:BollingerBandsIndicator.Data>
    </dxc:BollingerBandsIndicator>
</dxc:ChartView.Series>
C#
public class CalculatedSeriesData : BindableObject, ICalculatedSeriesData {
    public const string SeriesPropertyName = "Series";

    public static readonly BindableProperty SeriesProperty = BindableProperty.Create(
        propertyName: SeriesPropertyName,
        returnType: typeof(Series),
        declaringType: typeof(CalculatedSeriesData),
        defaultValue: null);

    public Series Series {
        get => (Series)GetValue(SeriesProperty);
        set => SetValue(SeriesProperty, value);
    }
}

The code above uses the following classes and members:

Symbol

Description

LineSeries.Data

Gets or sets data the series displays on the chart. This is a bindable property.

BollingerBandsIndicator

A Bollinger Bands indicator.

CalculatedSeries.Data

Gets or sets data the series displays on the chart. This is a bindable property.

See Also