Skip to main content

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

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.

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