Back to Devexpress

How to: Add the Fixed Value Error Bars Indicator to a Chart

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

latest1.0 KB
Original Source

How to: Add the Fixed Value Error Bars Indicator to a Chart

  • Jun 07, 2019

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

To do this, add a FixedValueErrorBars object to the series XYSeries2D.Indicators collection. Then, define negative and positive error values using the FixedValueErrorBars.NegativeError and FixedValueErrorBars.PositiveError properties.

xaml
<dxc:PointSeries2D.Indicators>
    <dxc:FixedValueErrorBars NegativeError="7"
                             PositiveError="10"
                             Direction="Both" 
                             EndStyle="Cap"
                             LegendText="Price Ranges"
                             ShowInLegend="True"/>
</dxc:PointSeries2D.Indicators>