Skip to main content
A newer version of this page is available. .

DataSourceBasedErrorBars Class

The Error Bars indicator whose error values are loaded from a data source.

Namespace: DevExpress.Xpf.Charts

Assembly: DevExpress.Xpf.Charts.v21.1.dll

NuGet Package: DevExpress.Wpf.Charts

Declaration

public class DataSourceBasedErrorBars :
    ErrorBars,
    IDataSourceIndicator

Remarks

This class introduces the DataSourceBasedErrorBars.PositiveErrorDataMember and DataSourceBasedErrorBars.NegativeErrorDataMember properties specifying data members which store error values.

Examples

How to: Add the Data Source Based Error Bars Indicator to a Chart

This example demonstrates how to plot Data Source Based Error Bars on the chart.

To do this, add a DataSourceBasedErrorBars object to the series XYSeries2D.Indicators collection. Then, specify which data members store negative and positive error values using the DataSourceBasedErrorBars.NegativeErrorDataMember and DataSourceBasedErrorBars.PositiveErrorDataMember properties.

View Example

<dxc:PointSeries2D  x:Name="pointSeries" DisplayName="Series 1">
    <dxc:PointSeries2D.Indicators>
        <dxc:DataSourceBasedErrorBars NegativeErrorDataMember="Negative"
                                      PositiveErrorDataMember="Positive"
                                      Direction="Both" 
                                      EndStyle="Cap"/>
    </dxc:PointSeries2D.Indicators>
</dxc:PointSeries2D>

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the DataSourceBasedErrorBars class.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

Implements

See Also