[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Drawing.ErrorBarDirection

ErrorBarDirection Enum

Specifies the direction of error bars on a chart series.

Error bars indicate the degree of uncertainty in chart data. Only series in area, bar, column, line, and scatter chart groups on 2D charts can have error bars. Only scatter chart series can have both X and Y error bars. Use Direction to retrieve the direction of an error bar.

Namespace: GrapeCity.Documents.Excel.Drawing
Assembly: DS.Documents.Excel.dll
Syntax
public enum ErrorBarDirection
Public Enum ErrorBarDirection
Examples
IShape shape = worksheet.Shapes.AddChart(ChartType.XYScatter, 250, 20, 360, 230);
worksheet.Range["A1:B4"].Value = new object[,] {
    {55, 964}, {20, 825}, {77, 840}
};
shape.Chart.SeriesCollection.Add(worksheet.Range["A1:B4"], RowCol.Columns);
ISeries series = shape.Chart.SeriesCollection[0];
series.HasErrorBars = true;
ErrorBarDirection direction = series.YErrorBar.Direction;

Fields

Name Description
X

Bars run parallel to the Y axis for X-axis values.

Y

Bars run parallel to the X axis for Y-axis values.