Back to Devexpress

Error Bars

wpf-116251-controls-and-libraries-charts-suite-chart-control-series-indicators-error-bars.md

latest4.7 KB
Original Source

Error Bars

  • May 28, 2021
  • 2 minutes to read

The Chart control makes it possible to place Error Bars on a diagram to indicate uncertainty or errors in chart point values.

This document consists of the following sections:

Available Error Bar Indicators

The Chart control provides the following Error Bar indicators:

|

Error Bars

|

Description

|

Specific Parameters

| | --- | --- | --- | |

Fixed (FixedValueErrorBars)

|

Error values are specified by constant values.

|

FixedValueErrorBars.PositiveError

FixedValueErrorBars.NegativeError

| |

Percentage (PercentageErrorBars)

|

Error values are calculated as a portion of series values.

|

PercentageErrorBars.Percent

| |

Standard Error (StandardErrorBars)

|

Error values represent a standard error.

|

| |

Standard Deviation (StandardDeviationErrorBars)

|

Error values represent a standard deviation.

|

StandardDeviationErrorBars.Multiplier

| |

Data Source Based (DataSourceBasedErrorBars)

|

Error values are obtained from a data source.

|

DataSourceBasedErrorBars.PositiveErrorDataMember

DataSourceBasedErrorBars.NegativeErrorDataMember

|

How to Add Error Bars to a Chart

The markup below shows how to add the Percentage Error Bars indicator to a chart:

xaml
<dxc:PointSeries2D x:Name="pointSeries"
                    DisplayName="Series">
    <dxc:PointSeries2D.Indicators>
        <dxc:PercentageErrorBars Percent="10" 
                                 Direction="Both" 
                                 EndStyle="Cap"
                                 ShowInLegend="True"
                                 LegendText="Percentage Error Bars"/>
    </dxc:PointSeries2D.Indicators>
   <!--...-->
</dxc:PointSeries2D>

The following classes and properties are used in this code:

Class or PropertyDescription
XYSeries2D.IndicatorsThe series collection of indicators.
PercentageErrorBarsThe Percentage Error Bars indicator.
PercentageErrorBars.PercentSpecifies the error percentage for series point values..
ErrorBars.DirectionSpecifies the error bar direction.
ErrorBars.EndStyleSpecifies the style of the error bar end.
Indicator.ShowInLegendSpecifies whether to show the indicator in a legend.
Indicator.LegendTextSpecifies text that identifies the indicator in a legend.

See Also

How to: Add the Fixed Value Error Bars Indicator to a Chart

How to: Add the Percentage Error Bars Indicator to a Chart

How to: Add the Standard Error Bars Indicator to a Chart

How to: Add the Standard Deviation Error Bars Indicator to a Chart

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