Skip to main content

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

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

To do this, add a StandardDeviationErrorBars object to the series XYSeries2D.Indicators collection. Use the StandardDeviationErrorBars.Multiplier property to define the multiplier by which the standard deviation value is multiplied before display.

<dxc:PointSeries2D.Indicators>
    <dxc:StandardDeviationErrorBars Multiplier="0.5" 
                             Direction="Both" 
                             EndStyle="Cap"
                             ShowInLegend="True"
                             LegendText="Standard Deviation"/>
</dxc:PointSeries2D.Indicators>