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
public interface ICalculatedSeriesData
Related API Members
The following members return ICalculatedSeriesData objects:
Example
This example populates a calculated series with data:
<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>
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 |
---|---|
Gets or sets data the series displays on the chart. This is a bindable property. | |
A Bollinger Bands indicator. | |
Gets or sets data the series displays on the chart. This is a bindable property. |
See Also