mobilecontrols-devexpress-dot-xamarinforms-dot-charts-9a782600.md
The interface should be implemented by an object that provides data for CalculatedSeries.
Namespace : DevExpress.XamarinForms.Charts
Assembly : DevExpress.XamarinForms.Charts.dll
NuGet Package : DevExpress.XamarinForms.Charts
public interface ICalculatedSeriesData
The following members return ICalculatedSeriesData objects:
This example demonstrates how to populate 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.
| |
|
A Bollinger Bands indicator.
| |
|
Gets or sets data the series displays on the chart.
|
See Also