Back to Devexpress

CalculatedSeriesDataAdapter Class

maui-devexpress-dot-maui-dot-charts-60cc825a.md

latest3.0 KB
Original Source

CalculatedSeriesDataAdapter Class

Provides the data for the Calculated series.

Namespace : DevExpress.Maui.Charts

Assembly : DevExpress.Maui.Charts.dll

NuGet Package : DevExpress.Maui.Charts

Declaration

csharp
public class CalculatedSeriesDataAdapter :
    BindableObject,
    ICalculatedSeriesData

Example

This example sets BollingerBandsIndicator for the first series in the chart and to provide data for the CalculatedSeries.

Set the Data property of your series (Bollinger Bands indicator in the current example) to a new CalculatedSeriesDataAdapter instance. Use the Series property to define the source series for the formula stored in the CalculatedSeries (indicator).

xml
<dxc:ChartView x:Name="chart">
    <dxc:ChartView.Series>
        <dxc:CandleStickSeries>
            <dxc:CandleStickSeries.Data>
                <dxc:SeriesDataAdapter DataSource="{Binding StockPrices}" ArgumentDataMember="Date">
                    <dxc:ValueDataMember Type="High" Member="High" />
                    <dxc:ValueDataMember Type="Low" Member="Low" />
                    <dxc:ValueDataMember Type="Open" Member="Open" />
                    <dxc:ValueDataMember Type="Close" Member="Close" />
                </dxc:SeriesDataAdapter>
            </dxc:CandleStickSeries.Data>
        </dxc:CandleStickSeries>
        <dxc:BollingerBandsIndicator DisplayName="Bollinger Bands 10"
                                     PointsCount="10">
            <dxc:BollingerBandsIndicator.Data>
                <dxc:CalculatedSeriesDataAdapter Series="{Binding Series[0], Source={x:Reference chart}}"/>
            </dxc:BollingerBandsIndicator.Data>
        </dxc:BollingerBandsIndicator>
    </dxc:ChartView.Series>
</dxc:ChartView>

Implements

INotifyPropertyChanged

ICalculatedSeriesData

Inheritance

System.Object BindableObject CalculatedSeriesDataAdapter

Extension Methods

Yield<CalculatedSeriesDataAdapter>()

YieldIfNotNull<CalculatedSeriesDataAdapter>()

See Also

CalculatedSeriesDataAdapter Members

DevExpress.Maui.Charts Namespace