[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Drawing.ISeries.YErrorBar

YErrorBar Property

YErrorBar

Gets the Y direction error bar for the series.

Use the returned IErrorBar object to read or modify the error bar settings for Y values in the series.

Declaration
IErrorBar YErrorBar { get; }
ReadOnly Property YErrorBar As IErrorBar
Examples
worksheet.Range["A1:B4"].Value = new object[,] {{"X", "Y"}, {1, 2}, {2, 4}, {3, 3}};
IChart chart = worksheet.Shapes.AddChart(ChartType.XYScatter, 20, 20, 300, 200).Chart;
chart.SeriesCollection.Add(worksheet.Range["A1:B4"]);
ISeries series = chart.SeriesCollection[0];
series.HasErrorBars = true;
IErrorBar errorBar = series.YErrorBar;
Exceptions
Type Condition
InvalidOperationException

if the series chart type does not support error bars.