Skip to main content

Error Bars

  • 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.

PercentageErrorBars

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:

<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 Property Description
XYSeries2D.Indicators The series collection of indicators.
PercentageErrorBars The Percentage Error Bars indicator.
PercentageErrorBars.Percent Specifies the error percentage for series point values..
ErrorBars.Direction Specifies the error bar direction.
ErrorBars.EndStyle Specifies the style of the error bar end.
Indicator.ShowInLegend Specifies whether to show the indicator in a legend.
Indicator.LegendText Specifies text that identifies the indicator in a legend.
See Also