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.
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 (Fixed | Error values are specified by constant values. | |
Percentage (Percentage | Error values are calculated as a portion of series values. | |
Standard Error (Standard | Error values represent a standard error. | - |
Standard Deviation (Standard | Error values represent a standard deviation. | |
Data Source Based (Data | Error values are obtained from a data source. |
#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. |
The series collection of indicators. |
Percentage |
The Percentage Error Bars indicator. |
Percentage |
Specifies the error percentage for series point values.. |
Error |
Specifies the error bar direction. |
Error |
Specifies the style of the error bar end. |
Indicator. |
Specifies whether to show the indicator in a legend. |
Indicator. |
Specifies text that identifies the indicator in a legend. |