Skip to main content

IErrorBarCollection Interface

A collection of error bars in a chart series.

Declaration

public interface IErrorBarCollection extends List<ErrorBar>

Remarks

Call the getErrorBars() method of a series (for example, LineSeries.getErrorBars()) to access the collection. Add ErrorBar objects to the collection to display error bars for series values.

A collection can contain up to two error bars for different axes (setAxis(ErrorBarAxis value)). If the collection contains two error bars, add methods do not add the error bar and throw an InvalidOperationException. The API throws the same exception if the collection contains an error bar for the same axis.

A new ErrorBar object uses the ErrorBarAxis.AUTO axis. To add a second error bar, call the setAxis(value) method of each error bar to specify different axes (for example, ErrorBarAxis.HORIZONTAL and ErrorBarAxis.VERTICAL).

Refer to the following help topic for additional information: Add Error Bars and Trend Lines to Charts — Presentation API for Java.

Implements

java.util.List<com.devexpress.docs.office.ErrorBar>