[]
Gets the X direction error bar for the series.
Use the returned IErrorBar object to read or modify the error bar settings for X values in the series. X direction error bars are supported for scatter series.
IErrorBar XErrorBar { get; }
ReadOnly Property XErrorBar As IErrorBar
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.XErrorBar;
| Type | Condition |
|---|---|
| InvalidOperationException | if the series chart type does not support error bars. |