Back to Devexpress

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

wpf-117118-controls-and-libraries-charts-suite-chart-control-examples-chart-elements-how-to-add-the-percentage-error-bars-indicator-to-a-chart.md

latest891 B
Original Source

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

  • Jun 07, 2019

This example demonstrates how to plot Percentage Error Bars on the chart.

To do this, add a PercentageErrorBars object to the series XYSeries2D.Indicators collection. Then, define the percentage of error values using the PercentageErrorBars.Percent property.

xaml
<dxc:PointSeries2D.Indicators>
    <dxc:PercentageErrorBars Percent="10" 
                             Direction="Both" 
                             EndStyle="Cap"
                             ShowInLegend="True"
                             LegendText="Units on Custom Order"/>
</dxc:PointSeries2D.Indicators>